This content has been marked as final.
Show 3 replies
-
1. Re: How to use and operator in EL
pablofelitti Nov 30, 2011 3:53 PM (in response to kamal_khadka)You may want to try to encapsulate that logic:
<s:div rendered="#{bean.validationMethod()}"> .... </s:div>
Your bean:
... public Boolean validationMethod() { if (prop1 && id != 24L) { return true; } else { return false; } } ...
-
2. Re: How to use and operator in EL
antibrumm.mfrey0.bluewin.ch Dec 1, 2011 12:55 AM (in response to kamal_khadka)Quite a complex solution for a simple thing :)
Use
rendered="#{bean.prop1 and bean.id = 24}"
-
3. Re: How to use and operator in EL
kamal_khadka Dec 4, 2011 8:18 PM (in response to kamal_khadka)I found out that 'L' was the problem. Just writing 24 in EL would convert it to Java Type.
I used 'and' and 'ne' and got this issue solved.
Thank you, Both of your solutions works.