aspose file tools
The moose likes JSF and the fly likes To the authors: Dynamically add components Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "To the authors: Dynamically add components" Watch "To the authors: Dynamically add components" New topic
Author

To the authors: Dynamically add components

Susanne Jarl
Greenhorn

Joined: Feb 21, 2006
Posts: 5
I wonder if your book cover how to dynamically add components in a backing bean? For example how to add columns to a datatable and how to set attributes for each column like width, title, mouseevents etc? Does it cover myfaces components?

Regards,
Susanne Jarl
Software developer
Sweden


/Susanne
Chris Schalk
author
Ranch Hand

Joined: Aug 31, 2006
Posts: 62
Most of the examples I put in the book don't necessarily create component dynamically i.e..purely in a backing bean. Typically what I've seen done - and what we do in the book is to have all the components declared on the page and bound to like UI components in a backing bean. A component could have its rendered attribute be initially set to false and you could then have code to toggle the rendered attribute to true in an actionlistener method.
Techniques for doing this are shown in Chap 8 (event model) and 9 (sample app).

-Chris
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: To the authors: Dynamically add components
 
Similar Threads
Adding components dynamically
JTree and JTable
File & dynamic retrieval
dynamic classpath
Can I add JSF components through Ajax?