Reputation: 297
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
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