检查所有代码,但没有找到重复的 id
<h:form method="post" id="form2" binding="#{user.load}">
<table>
<p:commandLink id="id1" action="#{user.screen1}" />
<p:commandLink id="id2" action="#{user.screen2}" />
</table>
<ui:include src="screen1.xhtml"></ui:include>
<ui:include src="screen2.xhtml"></ui:include>
</h:form>
screen1 xhtml 文件
<h:form method="post" id="form1" binding="#{new.qload}" >
<table>
<p:inputText id="ip1" value="#{new.firstname}" />
<p:commandLink id="submit" action="#{new.save}" />
</table>
</h:form>
在 web.xml 中试试这个
<context-param>
<param-name>com.ibm.ws.jsf.storeDynamicClientIds</param-name>
<param-value>true</param-value>
</context-param>
尝试在前面加上 true flase,但在表单的开头发现了两个条件不起作用的问题