-
1. Re: Method-Parameters not supported in JBossEL/JBoss 6.1?
ssilvert Sep 21, 2011 12:59 PM (in response to grexe)1 of 1 people found this helpfulYes, methods do work with JSF2.0/EL2.2 in JBoss AS6. In fact, I used it in the "Getting Started" example for JSF here:
http://docs.jboss.org/jbossas/6/JSF_Guide/en-US/html_single/index.html#jsf-markup
While we use the same JSF implementation as Glassfish, the EL implementation is different. So it does make sense that it might behave a little differently. Both should be spec complient though.
I suspect that maybe your problem lies in the declaration of your web.xml. The implementation uses the servlet version to set the spec version of the EL. So make sure you are using the Servlet 3.0 header in your web.xml.
Stan
-
2. Re: Method-Parameters not supported in JBossEL/JBoss 6.1?
grexe Oct 4, 2011 7:47 AM (in response to ssilvert)Thanks for the information and tips. However, in your example, you only use a trivial EL expression, but we want to concatenate the expression to access a property of the returned bean, in the form:
bean.method(param).property
It works when using ui:include and passing in the EL as parameter, this way we can then access the property in the dynamically created bean:
<ui:include src="../../editors/customerMasterDataEditor.xhtml">
<ui:param name="customer" value="#{orderBean.orderData.customer}" />
Here is our web.xml header (version 3.0 is defined, do we miss something?):
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
We can circumvent the EL issue with using ui:include parameters, but this is not really desirable as a general solution, so any help is still appreciated.