Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSF rendered multiple combined conditions

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?

like image 591
Arun Avatar asked Feb 08 '13 14:02

Arun


1 Answers

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

like image 52
Serkan Arıkuşu Avatar answered Sep 24 '22 07:09

Serkan Arıkuşu