Provide DynamicTableColumnFactory for dynamic tables:
https://jsftemplating.dev.java.net/issues/show_bug.cgi?id=10
Issue #|10
Summary|Provide DynamicTableColumnFactory for dynamic tables
Component|jsftemplating
Version|current
Platform|All
OS/Version|All
URL|
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|ENHANCEMENT
Priority|P3
Subcomponent|Component Factories
Assigned to|kenpaulsen
Reported by|karamb
------- Additional comments from karamb_at_dev.java.net Mon Feb 26 18:04:39 +0000 2007 -------
Please provide DynamicTableColumnFactory class to handle creating dynamic tables on the fly. Our application need this
feature for couple of tables. Also provide instructions on how to use it from the application. Here is Ken's response on
what need to happen:
---
Adding a custom factory will allow you to create as many table columns as you want and add them to the table. To get
started:
* Copy one of the other factories (such as TableColumnFactory.java)
* Write your own "createChild" implementation.
* In the createChild method, use LayoutComponent.getEvaluatedOption(...) to get values passed in as attributes in the
.jsf file. You will be able to pass in *anything* you want to help you determine what you need to do to create the
TableColumns.
* In the createChild method, create the child components (TableColumns) and add them to the "parent" (which is passed in
as an argument). (NOTE: you do not have to use "setOptions" or "addChild" methods if they don't apply for you). You
can (and should) also create the children of the TableColumns here.
---