JSF rendered multiple combined conditions
Asked Answered
B

1

39

I need to give condition like

 if((a == 12 and b == 13) or(a == 12 and b == 15))

in JSF rendered attribute.

Can anyone help?

Boots answered 8/2, 2013 at 14:50 Comment(0)
W
89

Assuming that "a" and "b" are bean properties

rendered="#{bean.a==12 and (bean.b==13 or bean.b==15)}"

You may look at JSF EL operators

Wellfavored answered 8/2, 2013 at 14:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.