Using multiple boolean conditions in EL expression

北城以北 提交于 2019-12-01 23:46:06
BalusC

The operator has to go inside the EL expression, not outside. You should see the #{...} as one big scope wherein various variables/conditions interact with each other.

<x:someComponent rendered="#{bean.condition1 or bean.condition2}">

See also:

The operator OR in an expression EL is ||.

Try this:

<ice:panelCollapsible  rendered ="#{mySessionBean.buttonVisibilities['myButton1'] || mySessionBean.buttonVisibilities['myButton2']}">

See this tutorial http://docs.oracle.com/javaee/1.4/tutorial/doc/JSPIntro7.html

Regards

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!