4 Replies Latest reply on Dec 21, 2009 12:53 AM by user1234

    tabPanel and JS

    soso_xuc

      i have tabpanel with switch type - client

      i want to switch tabs using javascript. how to do this?

      thanks in advance

        • 1. Re: tabPanel and JS
          ilya_shaikovsky

           

          RichFaces.switchTab('TabPanelClientId','TabClientId','TabName' )


          • 2. Re: tabPanel and JS
            Where can I find documentation on "RichFaces" other method calls?
            • 3. Re: tabPanel and JS
              soso_xuc

              Some of them are documented in dev guide - components which where added later (fileUpload for example).

              As I guess the best way is to explore ui.pack.js and framework.pack.js.jsf manually and find some useful methods there.

              I don't know if documentation of js methods will be provided in future releases.

              Maybe Nick or Ilya will tell us about future plans.

               

              With best regards.

              • 4. Re: tabPanel and JS

                There is a alternate way to switch between the tabs by directly using java script,

                 

                you just have to call,

                 

                document.getElementById(<rendered tab id>_shifted).click();

                 

                 

                here rendered tab id  means the id which it get at render time like , form id+ : + tab id