jsf 2 - Validation of dialog inside a accordion panel affects the acordion panel functionalty -


i have dialog inside accordion command button. if click on command button dialog opens , inside input text component. have made validation saying, name should not empty.

the problem facing though did not clicke on command button validation message input text appears, saying should not empty. appears every time , application hangs. have tried setting dynamic="false" did not work neither.

i using prime faces 3.5 , jsf2

<p:accordionpanel dynamic="true" id="editseaccordion" >     <p:tab id="edit3" title="myedit">         <p:dialog widgetvar="addsapdialog" id="sapdialog" modal="true" minimizable="false"             style="position:fixed;" closable="true" position="350,250" maximizable="false" >              <p:panel style="border:none;background:#f0f0f0;margin-top:-10px;">                 <h:panelgrid columns="2">                     <h:outputtext value="msg.editservice_s}" styleclass="label" />                       <p:inputtext label="name" styleclass="textfield"                          value="#{servicemanagedbean.sapbean.name}" required="true"                          requiredmessage="name compulsary"/>                  </h:panelgrid>                  <p:commandbutton value="cancel" styleclass="btn-secondary"                      style="float:right;margin-top:20px;" onclick="addsapdialog.hide();"/>                 <p:commandbutton value="ok" styleclass="btn-primary" ajax="true"                       actionlistener="#{servicemanagedbean.createaddsappanel}"                       oncomplete="handledialogsubmit(xhr, status, args)"/>              </p:panel>         </p:dialog> 

try use separate h:form element inputs inside dialog. because if click accordion tabs required inputs validated no matter partial process or partial render used.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

java - How to create Table using Apache PDFBox -

mpi - Why is MPI_Bsend not returning error even when the buffer is insufficient to accommodate all the messages -