I have a simple composit component with an attribute named '/required/':
<composite:attribute name="required" required="false" default="false"/>
The problem is when I try to use this component with a '/required/' attribute
value having EL expression in it, the expression is neglected and the default
value is used instead. Example:
<foo:bar required="#{true}"/>
If I remove the default value from the attribute definition it works as
expected. If I don't use EL in the value it works as expected. Example:
<foo:bar required="true"/>
I access the value of the attribute in the component implementation like
this:
#{cc.attrs.required}
Am I doing something wrong or is this a bug?
*JSF* version: 2.0.3 and 2.0.4-b5
*EL* api/impl version: 2.2
*Tomcat* version: 6.0.29
*web.xml* context param:
<param-name>com.sun.faces.expressionFactory</param-name>
<param-value>com.sun.el.ExpressionFactoryImpl</param-value>
--
[Message sent by forum member 'lobz']
View Post: http://forums.java.net/node/712124