satish
satish

Reputation: 297

how can we have or condition in rendered attribute

I have rendered condition like below mentioned. ui:fragment rendered="#{ navigationBean.currentUri == '/login/selectEnv.jsf' || navigationBean.currentUri == '/home/home.jsf'}"

but the || condition is not working.Is it possible to check two conditions in rendered attribute.Is there any aleternative to this?

Upvotes: 1

Views: 5362

Answers (1)

Sapan Nagpal
Sapan Nagpal

Reputation: 61

You can use or operation by using 'or' keyword.

 ui:fragment rendered="#{ navigationBean.currentUri == '/login/selectEnv.jsf' or  
     navigationBean.currentUri == '/home/home.jsf'}"

Upvotes: 2

Related Questions