This content has been marked as final.
Show 3 replies
-
1. Re: test enum values in EL expressions
rhasselbaum Jan 12, 2008 4:20 PM (in response to sunfire)If you search this forum, you'll see this question gets asked a lot. Quick answer is that it's not supported by EL, but there are a few workarounds described in other threads.
-
2. Re: test enum values in EL expressions
lundegaard Jan 14, 2008 5:30 AM (in response to sunfire)Try the following:
<h:outputText rendered="#{user.form.gender == 'FEMALE'}"> == works for me </h:outputText>
Tested with jboss-el-2.0.0.CR1.jar and jsf-impl-1.2_07.jar -
3. Re: test enum values in EL expressions
sunfire Jan 14, 2008 6:31 AM (in response to sunfire)Now this is quite impressive. About 18 months have passed since I made the original post and now it is being answered. ;)
Thanks a lot guys but since then I have figured out ways to get this done.
But I do appreciate that it doesn't matter how old a post is, you can always keep up the hope to get answers. :)