JSF1.2:ui:repeat,a4j:repeat和t:datalist标记之间的区别 [英] JSF1.2: difference between ui:repeat, a4j:repeat and t:datalist tags

查看:110
本文介绍了JSF1.2:ui:repeat,a4j:repeat和t:datalist标记之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您知道该主题中提到的标签之间有什么区别吗?

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用于tomahawka4jrichfaces前缀.

欢迎任何评论.

推荐答案

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆