[richfaces-issues] [JBoss JIRA] Commented: (RF-89) Allow tab panel render children inside iterable components

Grzegorz Szyma??ski (JIRA) jira-events at lists.jboss.org
Wed Mar 5 08:41:59 EST 2008


    [ http://jira.jboss.com/jira/browse/RF-89?page=comments#action_12401389 ] 
            
Grzegorz Szyma??ski commented on RF-89:
---------------------------------------

My solution works that way:

<rich:tabPanel>
    <rich:tabs label="#{item.label}" value="#{bean.items}" var="item">
        ...
    </rich:tabs>
</rich:tabPanel> 

I create new comonent UITabs (extends UITab), and modify (just a little) only 3 classes:

- TabPanelRendererBase (change activeTab to activeTabName, because it is better to recognize tab by name for the UITabs component)
- TabRendererBase (encode UITabs in specific way)
- UITabPanel (trick with TabsIterator)

and of course tabPanel.xml (add tabs component)

I prepare patches, tabPanelUITabs.jar and tabPanelDemoUITabs.war and sources. The solution work even if we have table inside UITabs with inputs (see attached war) .

If you like my code you can use it. Some parts of it was copy-paste form UIData (myfaces)...

> Allow tab panel render children inside iterable components
> ----------------------------------------------------------
>
>                 Key: RF-89
>                 URL: http://jira.jboss.com/jira/browse/RF-89
>             Project: RichFaces
>          Issue Type: Feature Request
>    Affects Versions: 3.0.0
>            Reporter: Ilya Shaikovsky
>         Assigned To: Maksim Kaszynski
>             Fix For: Future Versions
>
>         Attachments: tabPanelDemoUITabs.patch
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list