component id has already found in view

UI Components for JSF
Post Reply
suryakant.giram
Posts: 2
Joined: 17 Jun 2021, 08:36

17 Jun 2021, 08:41

check all component id but no duplicate id find

main xhtml

<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>
*no duplicate id found in code after checking include prepend true and false both not work also added below tag in web.xml*

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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 29 guests