Note that there are some explanatory texts on larger screens.

plurals
  1. POValidation of dialog inside a accordion panel affects the acordion panel functionalty
    primarykey
    data
    text
    <p>I have a dialog inside an accordion with a command button. If I click on the command button the dialog opens and inside is a input text component. I have made a validation saying, name should not be empty. </p> <p>The problem I am facing is even though I did not clicke on the command button the validation message for the input text appears, saying that it should not be empty. This appears every time and the application hangs. I have tried setting dynamic="false" but this did not work neither. </p> <p>I am using prime faces 3.5 and jsf2</p> <pre><code>&lt;p:accordionPanel dynamic="true" id="editSeAccordion" &gt; &lt;p:tab id="Edit3" title="myEdit"&gt; &lt;p:dialog widgetVar="addSAPDialog" id="sapDialog" modal="true" minimizable="false" style="position:fixed;" closable="true" position="350,250" maximizable="false" &gt; &lt;p:panel style="border:none;background:#F0F0F0;margin-top:-10px;"&gt; &lt;h:panelGrid columns="2"&gt; &lt;h:outputText value="msg.EditService_s}" styleClass="label" /&gt; &lt;p:inputText label="name" styleClass="textfield" value="#{serviceManagedBean.sapBean.name}" required="true" requiredMessage="name is compulsary"/&gt; &lt;/h:panelGrid&gt; &lt;p:commandButton value="Cancel" styleClass="btn-secondary" style="float:right;margin-top:20px;" onclick="addSAPDialog.hide();"/&gt; &lt;p:commandButton value="Ok" styleClass="btn-primary" ajax="true" actionListener="#{serviceManagedBean.createAddSapPanel}" oncomplete="handleDialogSubmit(xhr, status, args)"/&gt; &lt;/p:panel&gt; &lt;/p:dialog&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload