Hello,
I am struggling with this tab. I tryed different things with no luck. So I turned to you experts for help. My page can be static and simple. What I am trying to do is two tabs(tab1,tab2) and click each the contents switched between page1.jsp and page2.jsp. Here are the codes. Now I saw both page1.jsp and page2.jsp loaded into the screen no matter which tab is active. Please help. Thanks
<q:tabbedPane>
<q:tabbedPaneItem>
<f:facet name="tab">
<h:outputText value="First tab"/>
</f:facet>
<jsp:include page="page1.jsp"></jsp:include>
</q:tabbedPaneItem>
<q:tabbedPaneItem>
<f:facet name="tab">
<h:outputText value="Second tab"/>
</f:facet>
<jsp:include page="page2.jsp"></jsp:include>
</q:tabbedPaneItem>
</q:tabbedPane>
page1.jsp
<p>This is a page1 contents.</p>