2 Replies Latest reply on Sep 7, 2007 4:37 AM by Ilya Shaikovsky

    rich:tab, help please!

    Maximiliano Guzenski Newbie

      People,
      I have this code:

      <rich:tabPanel id="tabPanel" selectedTab="tab1" immediate="true" switchType="ajax">
      <rich:tab label="Tab1" name="tab1" >
       <a4j:form requestDelay="20" ignoreDupResponses="true">
       ...
       <a4j:commandButton action="#{bean.acionExec}" value="go">
       </a4j:form>
      </rich:tab>
      <rich:tab label="Tab2" name="tab2" >
       tab 2
      </rich:tab>
      /rich:tabPanel>
      


      How can I change tab active when I click on "go" button ?

      If tabPanel is "client" I put this javascript on onclick button event: "RichFaces.switchTab('tabPanel','mant','manter');"

      but how do I do when tabPanel is ajax type?