This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes not able to create jsf tab panel dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "not able to create jsf tab panel dynamically" Watch "not able to create jsf tab panel dynamically" New topic
Author

not able to create jsf tab panel dynamically

pankaj agarwal
Greenhorn

Joined: Jun 16, 2008
Posts: 1
i am using the jsf1.2 and richfaces.
i want to create the tabs in tabpanel dynamically
but i am not able to do this thing.

i use the following method


in each case i am not able to generate the no of tabs dynamically
please
if anybody can tell
then please tell me



thanks in advance
Zack Marrapese
Greenhorn

Joined: Jul 02, 2008
Posts: 27
Can the tabs be -- literally -- anything? Or are there a finite number of tabs, of which you only want some to be rendered each time? if that is the case, you can just set the rendered property on each tab, and link that into a backing bean value.

If that won't work for you, another option might be to bind the rich:tabPanel to a UITabPanel in the backing bean. Then, on construction of your bean, you can add any UITab children to this UITabPanel. Once you have these objects in the backing bean, you can basically manipulate them however you like before they are rendered on the page.

Hope this helps!
~Zack
 
Consider Paul's rocket mass heater.
 
subject: not able to create jsf tab panel dynamically
 
Similar Threads
Dynamically creating richfaces tabs
unable to include jsp in tomahawk tab
How to activate tab with the help of div tag
JSP and javascript
Get parent node dynamically