not beanmodel but mode="department"
then in the code:
void pageLoaded() {
model = beanModelSource.create(Department.class, false, resources);
model.remove("id"); // remove ones not visible
model.add("myNewField", null).label("New Field"); //add ur new
column.
}
Joshua Jackson-3 wrote:
>
> Dear all,
>
> How do I customize the Grid component since if I use it as such:
> <t:grid source="list" beanmodel="department" rowsPerPage="1" />
>
> it will generate and display default list of data.
>
> I want to add one more column in the Grid with header Action
>
> Thanks in advance
>
> --
> What you want today, may not exist tommorrow
>
> Blog: http://joshuajava.wordpress.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/T5%3A-Customize-Grid-tf4818657.html#a13789296
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]