• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Dynamically creating richfaces tabs

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've successfully done it. I used JSTL tag <c:forEach> for the iteration.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic