0
所以,嗯,我已经得到了JSF战斧表JSF战斧T:列条件呈现
<t:dataTable ... >
<t:columns ...>
... content to render ...
</t:columns>
</t:dataTable>
,我想省略一些列。我无法更改数据模型。列总数随时间变化。
试图
<t:dataTable ... >
<t:columns ...>
<c:if test="#{condition}">
... content to render ...
</c:if>
</t:columns>
</t:dataTable>
,但它仍然输出空列。
这个答案是不是一种选择: Conditional column rendering
因为我使用t:columns
而不是t:column
。
我在使用t:columns
时如何省略某些列?