-
1. Re: Tabbed Panel Question
sergeysmirnov Aug 27, 2007 6:29 PM (in response to kevin.weisser)Why don't you use RichFaces rich:tabPanel where updating the tab during the switching is a standard built-in option?
-
2. Re: Tabbed Panel Question
kevin.weisser Aug 28, 2007 10:29 AM (in response to kevin.weisser)I appreciate the suggestion, and have replaced my old tab panel code with the following:
<rich:tabPanel width="40%" switchType="ajax">
<rich:tab label="Addition">
<h:panelGroup id="mainAdd" styleClass="panelGroup">
<a4j:include viewId="plusone.jsp"/>
</h:panelGroup>
</rich:tab>
<rich:tab label="Subtraction">
<h:panelGroup id="mainMin" styleClass="panelGroup">
<a4j:include viewId="minusone.jsp"/>
</h:panelGroup>
<a4j:support event="ontabenter" immediate="false" actionListener="#{extAjaxReq.doSubtraction}" reRender="mainMin"/>
</rich:tab>
</rich:tabPanel>
However, when I change tabs it is still not ever hitting the method doSubtraction. Am I still not doing something right?
Additionally, would there be a way to only fire the Ajax event once as opposed to everytime that the tab is selected?
Regards,
Kevin