Hello, 

I tried <ui:repeat> but get the same error as with <c:forEach>.

My best guess to this point is to hardcode the tabs and control them with the 
rendered-attribute but that's not really dynamic.

-----Ursprüngliche Nachricht-----
Von: Walter Mourão [mailto:wal...@arcadian.com.br] 
Gesendet: Mittwoch, 10. August 2011 17:02
An: MyFaces Discussion
Betreff: Re: [Trinidad] Dynamic Tabs

Sorry, I though in <c:ForEach/> :-) Did you try <ui:repeat /> ?

Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Wed, Aug 10, 2011 at 11:45 AM, Ricardo Rog <ricardo....@softproject.de>wrote:

> Hello,
>
> thanks for your reply. I tried <tr:forEach> (I get an exception: "Tag
> Library supports namespace: http://myfaces.apache.org/trinidad, but no tag
> was defined for name: forEach") and <c:forEach> which gives me an error
> ("ERROR [STDERR] 10.08.2011 16:39:47
> org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.NavigationPaneRenderer
> renderContent SCHWERWIEGEND: Warnung: Ungültige Komponentenhierarchie
> ermittelt. UIXCommand wurde erwartet, aber stattdessen wurde ein anderer
> Komponententyp gefunden." => wrong component hierarchy. UIXCommand expect
> but other componenttype found). In both cases, I get no rendered output.
>
> Here is some example-code:
>
> My Listbox:
>
> <tr:selectManyListbox simple="true"
>        styleClass="register_DS_basis" id="dienstleistertypListBox"
>        value="#{registrationBU.dienstleistertypList}"
>        contentStyle="width: 240px; height: 120px"
>        onchange="countSelected(this,
> #{registrationBU.maxDienstleistertypen})"
>        shortDesc="Für die Mehrfachauswahl bitte Strg.-Taste gedrückt
> halten"
>        rendered="#{not empty registrationBU.possibleDienstleistertypen}">
>        <f:selectItems value="#{registrationBU.possibleDienstleistertypen}"
> />
> </tr:selectManyListbox>
>
> And the panelTabbed component:
>
> <tr:panelTabbed id="navigationTabs"
>        partialTriggers="dienstleistertypListBox">
>        <c:forEach value="#{registrationBU.dienstleistertypList}"
>                var="dienstleistertypItem">
>                <tr:showDetailItem text="#{dienstleistertypItem.label}" />
>        </c:forEach>
> </tr:panelTabbed>
>
> Thanks for your help.
>
> -----Ursprüngliche Nachricht-----
> Von: Walter Mourão [mailto:wal...@arcadian.com.br]
> Gesendet: Mittwoch, 10. August 2011 16:30
> An: MyFaces Discussion
> Betreff: Re: [Trinidad] Dynamic Tabs
>
> <c:forEach/> ?
>
> Walter Mourão
> http://waltermourao.com.br
> http://arcadian.com.br
> http://oriens.com.br
>
>
>
> On Wed, Aug 10, 2011 at 10:38 AM, Ricardo Rog <ricardo....@softproject.de
> >wrote:
>
> > Hello there,
> >
> >
> >
> > I have a question about tabs with Trinidad. My use-case is the following:
> I
> > have a tr:selectManyListBox in which a user can select a set of values.
> For
> > each selected value I want to add a Tab so that the user can do some
> > adjustments that depend on the selected values.
> >
> >
> >
> > My problem is that I don't know how to display the tabs dynamically (user
> > selects 2 items: 2 tabs appear, user deselects 1 item, tab disappears).
> My
> > first idea was to use tr:panelTabbed or tr:navigationPane but they both
> > don't allow components like tr:iterator (to iterate trough the list of
> > selected items from tr:selectManyListBox). What could be a way to solve
> > this
> > problem?
> >
> >
> >
> > Yours,
> >
> >
> >
> > Ricardo Rog
> >
> >
>
>
>

Reply via email to