-
1. Re: Migration from Richfaces 3 to 4
bleathem Sep 17, 2013 11:29 AM (in response to samkirans)rich:tab action and actionLIstener should work, see the vdl doc:
http://docs.jboss.org/richfaces/latest_4_X/vdldoc/rich/tab.html
You can't use switchType=client though, and your tab has to be in a form. Can you post a complete (yet simplified) facelet sample?
-
2. Re: Migration from Richfaces 3 to 4
samkirans Sep 18, 2013 1:14 PM (in response to bleathem)Hi below the sample code .
<h:head></h:head> <h:body> <h:form> <rich:tabPanel switchType="ajax"> <rich:tab label="tab1" action="#{bean.tab1Clicked}"> <c:if test="#{bean.isTab1Clicked}"> <ui:include src="pages/SubTab1.xhtml"/> </c:if> </rich:tab> <rich:tab label="tab2" reRender="component1,component2" action="#{bean.openList}"> <c:if test="#{bean.isTab2Clicked}"> <ui:include src="pages/SubTab1.xhtml"/> </c:if> </rich:tab> <rich:tabPanel> </h:form> </h:body>
-
3. Re: Migration from Richfaces 3 to 4
bleathem Sep 18, 2013 1:18 PM (in response to samkirans)Your problem here is your use of the c:if tags. The JSTL tags are evaluated at the time the component tree is built during the RESTORE_VIEW phase. This is before the results of your postback are applied and the view rendered. Use the rendered attribute (of a h:panelGroup for instance) to control conditional rendering. Reserve use of the JSTL c:if tag for when you wnat to keep the size of the component tree in check (for performance reasons) based on conditions that will not vary from one page to the next.