Thank you Julian, I tried the suggested syntax (slide 65) but it isn't
correct, it uses double quotes in the expression so the JSP can't
correctly parsed. I've tried the same thing with single quotes

value="#{ (person.fgDismissed=='1') ? 'Yes' : 'No' }"

but I got the usual exception..



2006/5/18, Julian Ray <[EMAIL PROTECTED]>:



This ref might provide some help

http://www.coreservlets.com/JSF-Tutorial/#Section4

 ________________________________
From: Cosma Colanicchia  [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 18, 2006 4:16  AM
To: MyFaces Discussion
Subject: Simple queston on EL  syntax



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




Reply via email to