There is no requirement that there be a class. You can just create your own implementation of BeanModel and do whatever you choose. BeanModel is an interface.
Cristian Gonzalo Gary <[EMAIL PROTECTED]> wrote: For each name in column needs an attribute of a class. I need to create a grid, with column names that are not associated with a class Vashon-Ez wrote: > > Use the 'model' attribute of the grid to specify a model for the rows. > Then in your backing Java class create the model - e.g., on the > pageLoaded() event, or onActivate() or wherever. E.g., > > @Retain > private BeanModel _model; > > void pageLoaded() { > _model = _beanModelSource.create( YOUR_JAVA_CLASS.class, true, > _resources); > > _model.remove(" NAME_OF_PROPERTY_TO_REMOVE "); > _model.remove(" NAME_OF_PROPERTY_TO_ADD"); > > // Add an "Actions" property / column that does not pull data from > the bean > _model.add("actions", null); > } > > public BeanModel getModel() { > return _model; > } > > > You can also create your own BeanModel implementation that stores property > names however you choose and does with them whatever you want... > > HTH, > > > Cristian Gonzalo Gary wrote: > i need to show many column , every column is asociated to an atribute > from objects inside a list. and the value of this columns is from another > source list. (i hope you understand better my problem ) > > > Thanks , Gracias. > > > > > > > -- > View this message in context: > http://www.nabble.com/T5-create-a-grid-with-columns-dynamics--tf4832954.html#a13836081 > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- View this message in context: http://www.nabble.com/T5-create-a-grid-with-columns-dynamics--tf4832954.html#a13844429 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]