You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Joshua Jackson <jo...@gmail.com> on 2007/11/16 03:17:47 UTC
T5: Customize Grid
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: Customize Grid
Posted by Joshua Jackson <jo...@gmail.com>.
Thanks. It worked. :)
On 11/16/07, Angelo Chen <an...@yahoo.com.hk> wrote:
>
> 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.
>
--
What you want today, may not exist tommorrow
Blog: http://joshuajava.wordpress.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: T5: Customize Grid
Posted by Angelo Chen <an...@yahoo.com.hk>.
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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org