Both works... maybe that syntax do some check on the bean which isn't
catched by the converter, for example it could check the type of the
property using introspection..
Anyway, I wrote a workaround for the problem using two outputText
components and setting their rendered attribute to
#{person.fgDismissed == '1'} and its inverse condition.
Thanks for your help OOschn and Julian
2006/5/18, Mike Kienenberger <[EMAIL PROTECTED]>:
Under facelets, I have successfully used expressions like these, but
facelets uses the EL RI.
===============
#{document.dependentEasementDocument != null ?
document.dependentEasementDocument.easementType.name : 'Permit'}
#{editAuthorizationDocumentPage.displayOnly ? "View" : "Edit"}
Show #{editAuthorizationDocumentPage.displayOnly ? 'View' :
'Add/Edit'} Payment Information
===============
I'd start by trying to simplify your expression to see where it's failing:
<h:outputText value="#{'1' == '1' ? 'Yes' : 'No'}"/>
<h:outputText value="#{person.fgDismissed == '1'}"/>
On 5/18/06, Cosma Colanicchia <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a problem with EL syntax and cannot found any good reference or
> manual on this topic, so I try to ask you :-)
> A component in my JSP page <h:outputText value="#{person.fgDismissed == '1'
> ? 'Yes' : 'No'}"/> that causes the following exception:
> javax.faces.FacesException: Cannot get value for expression
> '#{person.fgDismissed == '1' ? 'Yes' : 'No'}'
>
> Why it doesn't work? If I simply put an <h:outputText
> value="#{person.fgDismissed}"/> the value is correctly printed...
>
> TIA
> Cosma
>
>
>