2 Replies Latest reply on Jan 20, 2009 8:56 AM by jhaley

    tabPanel- actionListener not firing

    jhaley

      Can't figure out why after clicking my second search button I don't hit my actionListener in my second tab. The button on the first tab works fine. I discovered that if I change my switchType from ajax to client, I am able to hit the actionListener in my second tab. I'm pretty confused by this.

      I'm using RichFaces 3.2.2


      <rich:tabPanel switchType="ajax" selectedTab="#{modalFindAgentCtrl.selectedTab}" id="findAgentTab">
       <rich:tab label="#{labels['l.pages.modalPanels.modalFindAgent.tab.nameSearch']}" name="nameSearchTab" id="nameSearchTab">
       <h:form id="nameSearchFrm">
       <t:panelGrid columns="2">
       <h:outputLabel for="agencyName" value="#{labels['l.pages.modalPanels.modalFindAgent.agentName']}"></h:outputLabel>
       <t:inputText id="agencyName" value="#{modalFindAgentCtrl.findAgentCriteria.agencyName}"></t:inputText>
      
       <t:panelGroup colspan="2">
       <a4j:commandButton reRender="findAgentTab" value="#{labels['l.btn.common.Search']}" actionListener="#{modalFindAgentCtrl.searchName}" />
       </t:panelGroup>
       </t:panelGrid>
       </h:form>
       </rich:tab>
       <rich:tab label="#{labels['l.pages.modalPanels.modalFindAgent.tab.regionSearch']}" name="regionSearchTab" id="regionSearchTab">
       <h:form id="regionSearchFrm">
       <t:panelGrid columns="4" border="0" style="text-align:left;">
       <h:outputLabel for="city" value="#{labels['l.common.City']}"></h:outputLabel>
       <t:panelGroup colspan="3">
       <t:inputText id="city" value="#{modalFindAgentCtrl.findAgentCriteria.city}"></t:inputText>
       </t:panelGroup>
      
       <t:panelGroup colspan="4" style="text-align:right;">
       <a4j:commandButton value="#{labels['l.btn.common.Search']}" actionListener="#{modalFindAgentCtrl.searchRegion}"
       reRender="findAgentTab" />
       </t:panelGroup>
       </t:panelGrid>
       </h:form>
       </rich:tab>
      </rich:tabPanel>