Mantis - Resin
Viewing Issue Advanced Details
1931 major always 08-06-07 08:26 08-13-07 09:53
dheggie  
ferg  
normal  
closed 3.1.2  
fixed  
none    
none 3.1.3  
0001931: JspExpressionFactoryImpl evaluates the EL string "true" as false.
I have a JSF page that has many input fields that have the attribute required="true" e.g.
<h:inputText" id="username" value="#{loginAction.username}" required="true">

The string "true" is getting evaluated to the Boolean FALSE before it is set onto the JSF component.

I have tracked down the bug to the coerceToType(Object obj, Class<?> targetType) method in the com.caucho.jsp.el.JspExpressionFactoryImpl class. Line 67 is:

return Expr.toBoolean(obj, null) ? Boolean.FALSE : Boolean.TRUE;

when it should be the opposite e.g.

return Expr.toBoolean(obj, null) ? Boolean.TRUE : Boolean.FALSE;
I am running Sun's JSF 1.2_04-b16 RI and Jboss Seam 1.2.1 GA.

Notes
(0002176)
dheggie   
08-06-07 08:32   
I am also using Facelets 1.1.13
(0002190)
ferg   
08-13-07 09:53   
jsp/32ad