JSF1.2:ui:repeat,a4j:repeat和t:datalist标记之间的区别 [英] JSF1.2: difference between ui:repeat, a4j:repeat and t:datalist tags
问题描述
您知道该主题中提到的标签之间有什么区别吗?
Do you know what is the difference between the tags mentioned in the subject?
我认为它们应该产生几乎相同的结果,但事实证明,尽管在某些情况下,ui:repeat
(facelets标签)也无法正常工作,尽管它也被视为基本的迭代组件.
I thought they should produce pretty much the same result but it turned out that in some cases ui:repeat
(a facelets tag) is not working as you would expect, although it's also considered a basic iteration component.
t
用于tomahawk
,a4j
是richfaces
前缀.
欢迎任何评论.
推荐答案
Facelets的ui:repeat
在某些情况下确实存在错误.至于与其他两个的区别,可以归结为它不是
Facelets' ui:repeat
has indeed bugs in certain situations. As to the difference with the other two, it boils down that it's not an UIData
component while the other two are.
Ajax4jsf UIRepeat
扩展了UIData
.
战斧的 HtmlDataList
扩展了
Facelets的 UIRepeat
不会不扩展UIData
.
Ajax4jsf UIRepeat
extends UIData
.
Tomahawk's HtmlDataList
extends UIData
.
Facelets' UIRepeat
does not extend UIData
.
UIData
提供的可继承代码库已经相当成熟(尽管它并不总是像应该的那样高效). Facelets的UIRepeat
仍需要更多打磨. ui:repeat
无法扩展UIData
,因为它是Facelets(视图技术)的一部分,而不是JSF(基于组件的MVC框架)的一部分.它最初也是由另一个团队开发的.
The inheritable codebase provided by UIData
is pretty mature (although it is not always as efficient as it ought to be). The Facelets' UIRepeat
still needs to be polished more. The ui:repeat
can't extend UIData
, because it's part of Facelets, the view technology, not of JSF, the component based MVC framework. It was also initially developed by a different team.
由于不清楚您到底在说什么问题,因此很难说出它到底是它的已知错误之一,还是仅仅是误解/滥用.至少此处是与以下内容相关的所有已知错误的概述ui:repeat
.
Since it's unclear what issue exactly you're talking about, it's hard to tell whether it's actually one of its known bugs or just a misinterpretation/abuse. At least, here is an overview of all known bugs related to ui:repeat
.
这篇关于JSF1.2:ui:repeat,a4j:repeat和t:datalist标记之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!