0 Replies Latest reply on Dec 7, 2011 2:06 PM by abid zaid

    commandButton action with togglepanel

    abid zaid Newbie

      Hi,

       

      I have been trying to use the commandbutton action with toggle panel, however the event is not firing. I looked at some discussions that been related to this issue since version 3.0. when I click the Next button wizardController.action is not firing. Is there any workaround for this.

       

       

      <h:form>   
      <rich:togglePanel switchType="server" >
                          <rich:togglePanelItem switchType="server" >
                                  <h:inputText value="#{wizardController.email}" required="true"
                                      validator="#{wizardController.emailValidator}"/>
      
                                  <a4j:commandButton   value="Next" action="#{wizardController.action}" >
                                       <rich:toggleControl event="click"  targetItem="@next"/>
                                  </a4j:commandButton>
                                  <h:commandButton  value="Next" action="#{wizardController.action}">
                                                <rich:toggleControl  targetItem="@next" event="click" />
                                  </h:commandButton>
                          </rich:togglePanelItem>
      </rich:togglePanel>
      </h:form>