>From: "Craig McClanahan" <[EMAIL PROTECTED]> 
>
> On 3/6/06, Gary VanMatre wrote: 
> > 
> > This will give you more reuse options. You can use inheritance to create 
> > a table and add columns. 
> 
> 
> 
> Gary, 
> 
> Another general approach to dynamic content creation in JSF is to 
> programmatically adjust the child components -- like what the 
> "shale-sql-browser" example application does (it dynamically computes the 
> child columns, based on the database column names returned by the query that 
> you execute). Because there is no reference to the view tier technology 
> being used, this should work with Clay just as well as it does with JSP 
> pages. Have you tried something like that out yet? 
> 

I've not tried this with the data table but the rolodex usecase uses a similar 
method
of creating the subtree (tabs) from model data with the shapeValidator event 
(runtime option).  This method is different in that you are not creating the 
actual JSF components but the beans used to create the components.

Since the "binding" attribute now works in Clay, you can build up the data 
table in the managed bean like you described above.  I suppose this method is 
just as easy as the other and less overhead.  Although, you don't have the same 
metadata reuse options but that's not needed if it's based on a resultset.

Gary
> 
>> Gary 
> 
> 
> Craig 
> 

Reply via email to