2 Replies Latest reply on Nov 18, 2011 3:15 AM by ayscha

    rich:listShuttle & commandButton problem

    ayscha

      Hi everyone,

       

      Have a problem with commandButton used together with listShuttle, i can't catch action defined in commanbutton.

       

      my xhtml:

       

      <h:form id="formId>

                         <h:panelGrid columns="1" cellspacing="3" cellpadding="3" id="myPanel">

                             <h:outputLabel value="#{msg}"/>

                             <rich:listShuttle id="pickListSonus" sourceValue="#{sourceList}"

                                            targetValue="#{targetList}"

                                            var="items"

                                            fastMoveControlsVisible="false"

                                            fastOrderControlsVisible="false"

                                            orderControlsVisible="false">

                                            <h:column>

                                                  <h:outputText value="#{items}"></h:outputText>

                                            </h:column>

                             </rich:listShuttle>

                             <h:panelGroup>

                                 <a4j:commandButton value="#{msg.resetButton}" action="#{bean.reset}" reRender="myPanel"/>

                                 <rich:spacer width="5px"/>

                                 <a4j:commandButton value="#{msg.saveButton}" action="#{bean.save}" reRender="myPanel"/>

                             </h:panelGroup>

                          </h:panelGrid>

      </h:form>

       

      But neither reset nor save action are not catched by my managed bean.

       

      in bean methods defines as:

       

      public String reset(){ // save()

              ....;

          }

       

       

      Thanks in advance for your answers