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

    commandButton action with togglepanel

    abidz05

      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>