我想按照以下方式做一些事情,但是当我像这样使用它时,我收到一个解析错误,告诉我一个实体需要直接跟在“&”字符之后:
<ice:selectManyCheckbox
rendered="#{!bean1.condition1 && bean2.condition2}"
value="#{bean1.selected}">
<f:selectItems value="#{bean2.items}" />
</ice:selectManyCheckbox>
如何渲染以检查来自 2 个不同 bean 的条件?
最佳答案
改用“和”:
<ice:selectManyCheckbox rendered="#{!bean1.condition1 and bean2.condition2}" value="#{bean1.selected}">
关于java - 如何在 jsf 渲染属性中指定来自 2 个不同 bean 的条件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1004382/