i want to duplicate form, my code:
<p:outputPanel id="idUpdate">
<ui:repeat value="#{bean.items}" var="item">
<o:form id="formId-#{item.id}">
<p:inputText id="txtSearch-#{item.id}"/>
....
</o:form>
</ui:repeat>
</p:outputPanel>
<o:form id="formHandle">
<p:commandButton value="Add Form" actionListener="#{bean.cloneForm}" update="idUpdate">
</o:form>
when i click Add Form
, form was added, but in browser, id of form not as I expected.
...
<form id="j_idt295:1:formId-">
i need get id of form for handle javascript (hidden or show). I have reference: How to update data without page reload? ,How to create dynamic JSF form fields
how to get it. thanks