Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经呈现了如下所述的情况。ui:fragment render="#{ navigationBean.currentUri == '/login/selectEnv.jsf' || navigationBean.currentUri == '/home/home.jsf'}"
但是 || 条件不起作用。是否可以检查渲染属性中的两个条件。对此有什么替代方法吗?
您可以使用“或”关键字来使用或操作。
ui:fragment rendered="#{ navigationBean.currentUri == '/login/selectEnv.jsf' or navigationBean.currentUri == '/home/home.jsf'}"