Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<ui:fragment>和有什么区别<s:fragment>?我交替使用这两个标签库进行条件渲染(使用渲染属性,尽管我找不到任何说明“渲染”是 ui:fragment 的有效属性的文档)
<ui:fragment>
<s:fragment>
谢谢
是rendered的,这是唯一的区别。
rendered
很抱歉迟到了。我同意舍文。ui:fragment 上的“rendered”属性没有记录,但似乎有效。我在 JBoss 4.2.3 上使用 JSF 1.2。
如果您使用 Seam,我认为您应该使用 Seam 标签。不过,我只是在使用普通的 JSF,所以我别无选择。