I see,
That is an option I considered but I don't like it because it makes the page
more difficult to maintain. Is it possible to do this and create a sort of
jsp:include from the java code? that way the backing bean will control the
dynamic tabs yet the content of the tabs will be rendered by a jsp?
Shane Petroff wrote:
>
>
> I don't know if it is doable with the declarative syntax via
> jsp/facelets, but it would be easy to use a parent panel's binding, then
> build your tabs in java code.
>
> Shane
>
>
> geirgp wrote:
>> Hi,
>>
>> Is it possible for the panelTabbedPane to iterate over a java.util.List
>> and
>> create one tab for each entry in the list?
>>
>> I tried enclosing the panelTabs in a dataList (see below) but then no
>> tabs
>> were created and all information from all objects in the list were
>> printed
>> on the same panel.
>>
>> <t:panelTabbedPane serverSideTabSwitch="false"
>> <t:dataList var="segment" value="#{queryBean.result.segments}">
>> <h:column>
>> <t:panelTab label="#{segment.name}" >
>> <h:outputText
>> value="#{segment.name}"></h:outputText>
>> </t:panelTab>
>> </h:column>
>> </t:dataList>
>> </t:panelTabbedPane>
>>
>
>
> --
> Shane
>
>
>
--
View this message in context:
http://www.nabble.com/Dynamic-tabs-in-panelTabbedPane-tf4335321.html#a12365684
Sent from the MyFaces - Users mailing list archive at Nabble.com.