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 <[EMAIL PROTECTED]> 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]


Reply via email to