4 Replies Latest reply on May 26, 2011 10:39 AM by bhaskaronline4u

    Using <rich:tab> how to get to tab via URL?

    dekers

      Hi all,

       

      I am using <rich:tab> in order to create two tabs in my application.

      What I am interested in, is constructing a URL that when the user clicks it, he/she will be directed to one of the two tabs.

       

      Problem: it is not clear to me which tag should get the id -  <rich:tab>, <rich:toolBar>, <rich:toolBarGroup> etc. and how my URL will have to look like.

       

      I looked at the good documentation on this site and managed to learn a lot but I could not find anyone explaining how to navigate directly to a specific tab on a page by only manipulating the URL.

       

      Help is much apreciated!

       

      Thank you,

      D

        • 1. Re: Using <rich:tab> how to get to tab via URL?
          ilya_shaikovsky

          It's one of the major problem with JSF 1.2 itself (creation of bookmarkable urls.) But as you could easilly check - we made simple solution for our demosite(main tabs changes available from URL). You could checkout it from SVN and look through the code. Read more there.

          • 2. Re: Using <rich:tab> how to get to tab via URL?
            dekers

            Hi Ilya,

             

            Thank you for the ultra-quick answer!

            I will sure take a look at that.

             

            Strange I could not find any information on that (using google...).

             

            By the way I am using JSF2 - does this change anything?

             

            Thanks,

            D.

            • 3. Re: Using <rich:tab> how to get to tab via URL?
              ilya_shaikovsky

              in JSF 2 world it's much simpler.. You could use h:link in tab headers and use them instead of built-in switching to change selected tab.. It should works (looks like cool thing but actually I'm not tried).

               

              B.t.w. thanks for cool idea - I will go to dev space and will check with guys what could we do to make that works out-of-the-box.

              • 4. Re: Using <rich:tab> how to get to tab via URL?
                bhaskaronline4u

                I have the same problem. and i am very new to JSF. using jsf2.0. please can anyone provide the solution how can i switch the tabs according to some parameter value of the URL. and thanks Liya for your reply.. in the demo site i have seen it doing as i wanted but not able to view the code.. can you please provide some more details about it.

                 

                thanks for your valuable time and reply in advance...