5 Replies Latest reply on Apr 28, 2008 9:24 PM by madhav_inamti

    rich tab panel question....

      I have three tabs in a tab panel

      First Second Third.

      On Second and Third, I have pagination. However Next/Prev on Second/Third Tab takes me to First. I want it to stay in Second/Third as the case may be.

      I am not using any backing bean...

      Is this a bug ?

      Thanks,

      M

        • 1. Re: rich tab panel question....

          Would some from Richfaces please look at this issue.....

          • 2. Re: rich tab panel question....
            nbelaevski

            Hello,

            Could you please provide some more info about page code & RichFaces version you are using?

            • 3. Re: rich tab panel question....

              Pressing on Next or Prev in the second tab takes me to the first tab. I want it to stay in the second tab.

              Thanks.



              <rich:tabPanel switchType="ajax" >
               <rich:tab label="First Foo">
               <rich:panel id="firstfooPanel">
               <f:facet name="header">#{messages.firstfoo}</f:facet>
              
               <h:form>
              
               .....
               </h:form>
               </rich:panel>
               </rich:tab>
               <rich:tab label="Second Foo">
               <rich:panel id="secondfooPanel">
               <f:facet name="header">#{messages.secondfoo}</f:facet>
              
               <h:form>
              
               <ui:repeat value="#{secondFooQuery.resultList}" var="it">
               .......
               </ui:repeat>
              
              
               </h:form>
              
               <s:link view="/foo.xhtml"
               rendered="#{secondFooQuery.previousExists}" value="Prev ">
               <f:param name="secondFooResult"
               value="#{secondFooQuery.previousFirstResult}" />
               </s:link>
               <s:link view="/foo.xhtml" rendered="#{secondFooQuery.nextExists}"
               value="Next ">
               <f:param name="secondFooResult" value="#{secondFooQuery.nextFirstResult}" />
               </s:link>
               </rich:panel>
               </rich:tab>
               </rich:tabPanel>





              • 4. Re: rich tab panel question....

                It is really hard to image that you have something like that based on the text from your first post.

                You do no use ajax pagination, but use two non-Ajax buttons that refresh the whole page. I wonder that is the reason to use switchType="ajax" in this way?

                If you want to have one of the tab opened after the non-Ajax navigation, you need to manipulate with selectedTab attribute

                • 5. Re: rich tab panel question....

                  Thanks. That worked...

                  Appreciate it...