Arun
Arun

Reputation: 3841

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?

Upvotes: 40

Views: 126276

Answers (1)

Serkan Arıkuşu
Serkan Arıkuşu

Reputation: 5619

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

Upvotes: 91

Related Questions