我有一个来自 Primefaces 的 tabView 选项卡组件的“问题”。我做了一个带有基于数组的动态选项卡的 tabView。
但是某些选项卡无法根据该数组中对象的布尔属性呈现。
我尝试了渲染=“真”或“假”,但没有任何反应(在选项卡上)。我使用 render="#{_item.show}" 我尝试使用禁用功能并且工作正常,但这不是我的需要。
有人知道如何解决这个问题吗?
检查我的代码:
<p:tabView id="tabs" value="#{myBean.list}" var="_item" orientation="left" style="height:800px!important;" >
<p:tab title="#{_item}" rendered="#{_item.show}" >