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