0

I am using form that contains primefaces picklist. when I click on the commandButton nothing happens. If I removed the pickList it works fine.

<ui:define name="content">
<h:form>
    <div class="form">
        <p:panel id="panel" header="#{msgs['group.message.create']}">

            <p:messages id="msgs" display="icon" />

            <h:panelGrid columns="3">

                <h:outputLabel for="name" value="#{msgs['general.text.name']} *" />
                <h:outputText value="#{groupBean.group.name}" rendered="#{groupBean.group.id != null and groupBean.group.id != 0}" />
                <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}"/>
                <p:message for="name" display="icon" />

                <h:outputLabel for="description" value="#{msgs['general.text.description']} *" />
                <p:inputTextarea required="true" id="description" value="#{groupBean.group.description}" label="#{msgs['general.text.description']}"/>
                <p:message for="description" display="icon" />

                <h:outputLabel for="pickList" value="#{msgs['group.message.permissions']} *" />
                <p:pickList required="true" id="pickList" value="#{groupBean.permissions}" label="#{msgs['group.message.permissions']}"
                        var="p" itemLabel="#{p.description}" itemValue="#{p}" converter="permissionConverter"/>
                <br/>
                </h:panelGrid>


            <div class="buttons">
                <h:commandButton id="save" value="#{msgs['common.saveButton']}" action="#{groupBean.saveGroup}" styleClass="redButton" />
                <h:commandButton class="greyButton" id="cancel" value="#{msgs['general.text.cancel']}" action="listGroups.xhtml?faces-redirect=true" immediate="true" />
            </div>
        </p:panel>
        <h:inputHidden id="groupId" value="#{groupBean.group.id}" />
    </div>
</h:form>

Tamer Awad
  • 392
  • 7
  • 10
  • No conversion/validation errors? See also http://stackoverflow.com/questions/2118656/hcommandlink-hcommandbutton-is-not-being-invoked/2120183#2120183 – BalusC Jul 30 '13 at 12:41
  • there is a strange behavior this works locally very good but not on server – Tamer Awad Jul 30 '13 at 13:14
  • Well, as long as you haven't determined the root cause by debugging the HTTP traffic and JSF code flow, it's impossible to answer this question. – BalusC Jul 30 '13 at 13:16
  • When accessing this page from outside our network it works good. – Tamer Awad Aug 06 '13 at 12:48

0 Answers0