This content has been marked as final.
Show 3 replies
-
1. Re: rich:tabPanel - do all tabs get get evaluated at once
suckerd May 4, 2008 4:21 PM (in response to suckerd)Could someone please help me?
Are there any best practices concerning tabs?
Thanks a bunch,
Mike -
2. Re: rich:tabPanel - do all tabs get
ronanker May 5, 2008 11:46 AM (in response to suckerd)multiple solutions...
for the duplicate component id you should make a subview in each tab...
i think you got this issue because you import the same file multiple time, so this is not a component issue, just that you should know that when you include a file you have to put it in a subview, or begin your included file with subview.
for the fact that all the getter are called... in JSF i've never found a total solution, personnally i use <c:if test="${...}" each time i want to put a condition over an include.
so conclusion :<rich:tabPanel switchType="ajax" selectedTab="..."> <rich:tab label="..." > <c:if test='${selectedTab=="..."}'> <f:subview> <jsp:include page="..."/> </f:subview> </c:if> </rich:tab> </rich:tabPanel>
-
3. Re: rich:tabPanel - do all tabs get
suckerd May 5, 2008 1:00 PM (in response to suckerd)Hi RonanKER,
thanks a lot, using facelets the following did the trick:<c:if test="#{simpleTreeBean.selectedTab=='first'}"> <ui:include src="/pages/first.xhtml" /> </c:if>
THX+CU Mike