0

check all code but no duplicate id found


        <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 file


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

try this in web.xml

<context-param>
<param-name>com.ibm.ws.jsf.storeDynamicClientIds</param-name>
<param-value>true</param-value>
</context-param>

try with prepend true flase both condition not working issue is found in starting of form

BalusC
  • 1,040,783
  • 362
  • 3,548
  • 3,513
  • Probably unrelated to your issue, but you have a form inside a form, which isn't allowed. The `ui:include` is already inside form2, but the included snippet includes it's own form1. I suggest moving the `ui:include` outside of the top level form. Could you post screen2.xhtml too please? – Brooksie Jun 17 '21 at 09:00

0 Answers0