wood burning stoves 2.0*
The moose likes JSF and the fly likes Adding components dynamically based on data retrieved!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Adding components dynamically based on data retrieved!!" Watch "Adding components dynamically based on data retrieved!!" New topic
Author

Adding components dynamically based on data retrieved!!

Hanish Guru
Greenhorn

Joined: Jul 14, 2006
Posts: 1
Hello
Can you help to sort out this problem... I need to dynamically show a jsf page depending on the data retrieved from the database. This means that based on the data I need to add labels and components like prepopulated drop downs etc to the page which again can be submitted to retrieve the data selected by the user.
Is there a way that exist to solve the problem?? Are there any examples related to the same?? I'd highly appreciate if someone can render help to the same!!
Thanks.
Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
what type of way are you looking for ? I have done something similar to what you have described and for creating the labels and other fields dynamically i had to code it in the backing bean .. create HtmlPanelGroup, HtmlPanelGrid and add your components to the grid..

Thanks,
ved gunjan
Ranch Hand

Joined: May 17, 2003
Posts: 86
I also have similar kind of requirement..wherein i have to create components based on type,which comes from the backened server. I have to create these components in datatable, which i have binded in my backing beans.
I think im close to gettting it..wil post once i acheive it.

thanks
ved
 
 
subject: Adding components dynamically based on data retrieved!!
 
Similar Threads
dynamic Checkboxe value retrieval
creating html form dynamically using logic:iterate
Accessing the Web Page that is created dynamically.
How to include the world map in jsp page with dynamic value on position of cursor on map
Ajax for JSF