i try to show / hide inputText when user click on checkbox. When i used update=@form it works but if i give ids it doesn't
why ?
below i light exemple
primefaces 5.3 (tested with 6.0 same)
<h:form id="formId">
<p:outputPanel id="panel1" rendered="#{!param['checkb'].checked}">
<p:outputLabel value="input 1"/>
<p:inputText id="i1" value="#{employe.prenom}" />
</p:outputPanel>
<p:outputPanel id="panel2" rendered="#{param['checkb'].checked}">
<p:outputLabel value="input 2"/>
<p:inputText id="i2" value="#{employe.prenom}"/>
</p:outputPanel>
<p:selectBooleanCheckbox value="#{employe.mobileAsContact}" id="checkB">
<p:ajax update="panel1 panel2"></p:ajax>
</p:selectBooleanCheckbox>
</h:form>