Hi,

In PrimeFaces, tab component is shared among components like tabview, 
accordion, wizard and carousel so tab has no renderer as these components 
render the tabs with specific markup.

PF has builtin support for dynamic tabs btw.

http://www.primefaces.org/showcase-labs/ui/tabviewModel.jsf

Cheers,

Cagatay

----- Reply message -----
From: "Adam Furmanczuk" <afurmanc...@knowtrek.com>
Date: Thu, Oct 13, 2011 09:55
Subject: tomahawk dynamic tabbedPane
To: <dev@myfaces.apache.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

the tabbedPane in tomahawk is a bit rusty now. I noticed no real
progress recently. In mail archives people complained about tabbedPane
issues years before. And using c:forEach is no good workarround.

I wonder why all tabbedpanes have the inherent inabillity to support
ui:repeat?

I read this post on how to make a "tabbed pane" [1].

May brilliant idea is: you define in tabbedPane a sepecial tag handler
on what items to group by. say:

<t:tabbedPane groupBy="h:panelGroup">
        <ui:repeat value="#{list} var="item">
        <h:panelGroup>
                <h:outputText value="#{item.name}"/>
        </h:panelGroup>
        </:uirpeat>
</:tabbedPane>

Now tabbedPane notices: Oh, I have sone h:panelGroups inside next to
each other and i should groupBy panelGroups: ok i make the tabs.. ??

tabbePane knows panelTab can't it be thought to know ui:repeats as well?

Is it difficult to rewrite the tabbedpane to enable ui:repeat?
What would be the steps to make it work?

I tested many alternatives: primefaces:tabView, openfaces:tabset..
Most promising is openfaces:tabbedpane, but cannot make it work properly
somehow..

Thanks for feedback.

Greets,

Adam


[1] =
http://stackoverflow.com/questions/3491969/how-do-i-get-a-tabbed-pane-component-in-jsf-2-0-sun-mojarra
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6Wi0wACgkQefEEI87R1DfFBwCfdqlD9W5vmHsDg6/s5aBgh49b
1A8AnRHYQNe2xTVaAax1/Qgwsxnng6Ok
=g02n
-----END PGP SIGNATURE-----

Reply via email to