Note that there are some explanatory texts on larger screens.

plurals
  1. POJSF2 CommandButton is not working while using picklist
    primarykey
    data
    text
    <p>I am using form that contains primefaces picklist. when I click on the commandButton nothing happens. If I removed the pickList it works fine.</p> <pre><code>&lt;ui:define name="content"&gt; &lt;h:form&gt; &lt;div class="form"&gt; &lt;p:panel id="panel" header="#{msgs['group.message.create']}"&gt; &lt;p:messages id="msgs" display="icon" /&gt; &lt;h:panelGrid columns="3"&gt; &lt;h:outputLabel for="name" value="#{msgs['general.text.name']} *" /&gt; &lt;h:outputText value="#{groupBean.group.name}" rendered="#{groupBean.group.id != null and groupBean.group.id != 0}" /&gt; &lt;p:inputText required="true" id="name" value="#{groupBean.group.name}" label="#{msgs['general.text.name']}" rendered="#{groupBean.group.id == null or groupBean.group.id == 0}"/&gt; &lt;p:message for="name" display="icon" /&gt; &lt;h:outputLabel for="description" value="#{msgs['general.text.description']} *" /&gt; &lt;p:inputTextarea required="true" id="description" value="#{groupBean.group.description}" label="#{msgs['general.text.description']}"/&gt; &lt;p:message for="description" display="icon" /&gt; &lt;h:outputLabel for="pickList" value="#{msgs['group.message.permissions']} *" /&gt; &lt;p:pickList required="true" id="pickList" value="#{groupBean.permissions}" label="#{msgs['group.message.permissions']}" var="p" itemLabel="#{p.description}" itemValue="#{p}" converter="permissionConverter"/&gt; &lt;br/&gt; &lt;/h:panelGrid&gt; &lt;div class="buttons"&gt; &lt;h:commandButton id="save" value="#{msgs['common.saveButton']}" action="#{groupBean.saveGroup}" styleClass="redButton" /&gt; &lt;h:commandButton class="greyButton" id="cancel" value="#{msgs['general.text.cancel']}" action="listGroups.xhtml?faces-redirect=true" immediate="true" /&gt; &lt;/div&gt; &lt;/p:panel&gt; &lt;h:inputHidden id="groupId" value="#{groupBean.group.id}" /&gt; &lt;/div&gt; &lt;/h:form&gt; </code></pre> <p></p>
    singulars
    1. This table or related slice is empty.
    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.
    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