This content has been marked as final.
Show 5 replies
-
1. Re: rich tab panel question....
madhav_inamti Apr 28, 2008 3:20 PM (in response to madhav_inamti)Would some from Richfaces please look at this issue.....
-
2. Re: rich tab panel question....
nbelaevski Apr 28, 2008 3:30 PM (in response to madhav_inamti)Hello,
Could you please provide some more info about page code & RichFaces version you are using? -
3. Re: rich tab panel question....
madhav_inamti Apr 28, 2008 3:49 PM (in response to madhav_inamti)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....
sergeysmirnov Apr 28, 2008 4:16 PM (in response to madhav_inamti)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....
madhav_inamti Apr 28, 2008 9:24 PM (in response to madhav_inamti)Thanks. That worked...
Appreciate it...