aspose file tools*
The moose likes JSF and the fly likes Dynamically creating richfaces tabs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Dynamically creating richfaces tabs" Watch "Dynamically creating richfaces tabs" New topic
Author

Dynamically creating richfaces tabs

Brad Messerle
Greenhorn

Joined: Jun 30, 2006
Posts: 4
I am trying to create tabs dynamically using the exadel richfaces tab component.

Has anyone been able to do dynamic tabs with richfaces?

If so some sample code would be great.

Thanks!
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

OK, unfortunately, I do not have any sample code to show.

But, I do have some suggestions. Yes you can dynamically create richfaces components in code, and it would look exactly like how you code dynamic core JSF components, but with different classes.

Since Richfaces is open source you can actually download the code and see what the classes are named and packaged. Also the Richfaces website has examples,

Here are their Javadocs
http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone/docs/apidoc/index.html

And here is the doc for the Richfaces Tab, it even has code sample for dynamically building a tab.

http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/RichFacesComponentsLibrary.html#tab

I can't say the docs are 100% clear and have every attribute documented, but it gets you started.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Abhijit Majumdar
Greenhorn

Joined: Sep 23, 2009
Posts: 1
I've successfully done it. I used JSTL tag <c:forEach> for the iteration.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamically creating richfaces tabs