且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

<h:形式>在 <ui:repeat>不完全工作,只有最后一个 <h:form>被处理

更新时间:2022-12-03 09:36:28

这是 Mojarra 中 状态保存的错误.http://java.net/jira/browse/JAVASERVERFACES 中有几个类似的问题报告,其中包括 issue 2243.

This is a bug in state saving of <ui:repeat> in Mojarra. There are several similar issue reports at http://java.net/jira/browse/JAVASERVERFACES, among others issue 2243.

您基本上有 2 个选项:使用另一个迭代组件(例如 等),或用 MyFaces 替换 Mojarra(此结构中的 在那里).

You have basically 2 options: use another iterating component (e.g. <c:forEach>, <h:dataTable>, <t:dataList>, <p:dataList>, etc), or replace Mojarra by MyFaces (the <ui:repeat> in this construct works properly in there).