Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
1931 | major | always | 08-06-07 08:26 | 08-13-07 09:53 | |
|
|||||
Reporter: | dheggie | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.1.2 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.1.3 | ||
|
|||||
Summary: | 0001931: JspExpressionFactoryImpl evaluates the EL string "true" as false. | ||||
Description: |
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; |
||||
Steps To Reproduce: | |||||
Additional Information: | I am running Sun's JSF 1.2_04-b16 RI and Jboss Seam 1.2.1 GA. | ||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|