| Anonymous | Login | Signup for a new account | 10-25-2025 12:11 PDT |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0001931 | [Resin] | major | always | 08-06-07 08:26 | 08-13-07 09:53 | ||||
| Reporter | dheggie | View Status | public | ||||||
| Assigned To | ferg | ||||||||
| Priority | normal | Resolution | fixed | Platform | |||||
| Status | closed | OS | |||||||
| Projection | none | OS Version | |||||||
| ETA | none | Fixed in Version | 3.1.3 | Product Version | 3.1.2 | ||||
| Product Build | |||||||||
| 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. | ||||||||
| Attached Files | |||||||||
|
|
|||||||||
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 |
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |