This content has been marked as final.
Show 5 replies
-
1. Re: tabs with includes
quartilan Nov 24, 2008 6:32 AM (in response to quartilan)Or is there a way to save the state of the include page to reinclude in the tab after the rerender of the tabs?
-
2. Re: tabs with includes
ilya_shaikovsky Nov 24, 2008 6:50 AM (in response to quartilan)if you reRender tabPanel - only selected tab reRendered using ajax switchType.
-
3. Re: tabs with includes
quartilan Nov 24, 2008 7:11 AM (in response to quartilan)Problem is:
Tab1: search with result in it.
I add a new tab with the same page in it. After the adding of this new tab I have to rerender the tabpanel to show the newly added tab. The problem is then that tab1 gets rerendered too. Thus I lose the result from the search in the first tab.
The switch type of the panel is "client" and this works ok. I I switch between the panel there is no problem. Only if I create a new tab.
This is the way I add a new tab:<a4j:commandLink reRender="tabs" value="#{msg.attestationMenu}" style="font: menu;" action="#{navigationBean.addNewTab}"> <a4j:actionparam name="requestedPath" value="/pages/attestation/attestationOverview.jsp" assignTo="#{navigationBean.requestedPath}" /> <a4j:actionparam name="tabLabel" value="#{msg.attestationMenu}" assignTo="#{navigationBean.tabLabel}" /> </a4j:commandLink>
NavigationBean:public void addNewTab() { if (this.tab2.getStyle().equalsIgnoreCase("display:none")) { tab.setRendered(true); tab.setLabel(tabLabel); tab.setStyle("display:block"); if (!renderedTabNames.contains(tab.getName())) { renderedTabNames.add(tab.getName().toString()); } this.path2 = this.requestedPath; ((HtmlTabPanel)this.tab.getParent()).setSelectedTab(this.tab.getName()); }
-
4. Re: tabs with includes
quartilan Nov 24, 2008 7:12 AM (in response to quartilan)EDIT :first tab2 must be tab
-