在问这个问题之前,我访问了许多其他相关的,并试图收集最多的信息。但是,到目前为止我所发现的让我明白 ui:repeat
之间没有真正/主要的区别。和 h:dataTable
,并且只要我们可以使用 h:dataTable
我们也可以使用 ui:repeat
(有时其中一个比另一个稍微复杂,但最后我们得到了相同的结果)。
那么,是否有任何用例唯一的选择是使用 h:dataTable
?还是相反(唯一的选择是 ui:repeat
)?
最佳答案
is there any use cases where the only choice is to use h:dataTable?
UIData
基于组件(在 UIRepeat
中不存在其所有特殊属性)。 <table>
通过 JSF 组件。 <table>
渲染(如 PrimeFaces <p:dataTable>
进行排序、过滤、分组、折叠、延迟加载等)。 or the opposite (only choice is ui:repeat)?
step
属性)。 关于JSF 用户界面 :repeat vs h:dataTable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28943595/