myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harald Müller <>
Subject panelTabbedPane with dynamic-tabs
Date Wed, 07 Dec 2005 23:39:28 GMT

I'd like to use the "panelTabbedPane" and create the tabs dynamically (reading from a xml-file).

I'm getting a list of "objects" from my bean and for each list-item a new tab should be

My jsf-code looks like this:

<t:panelTabbedPane bgcolor="#FFFFCC" >
<c:forEach items="${homeBean.uiData}" var="tabDataValue">
  <c:set var="tabData" scope="request" value="${tabDataValue}"/>
  <t:panelTab id="tab1" label="#{tabData.tabName}" >
  	<h:outputText value="#{tabData.tabName}" /> 

I think it's not a good idea to mix jstl with jsf ... so i tried the "dataList" from tomahawk

Something like:

<t:panelTabbedPane bgcolor="#FFFFCC" >
<t:dataList value="${homeBean.uiData}" var="tabData">
  <t:panelTab id="tab1" label="#{tabData.tabName}" rendered="true">
  	<h:outputText value="#{tabData.tabName}" /> 

But I'm just getting weird results ... and nothing seems to work.

What am I doing wrong? ... Thanks for advise!

Is a possible solution for my problem mentioned here:


View raw message