Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

Re: Display a hashmap using a grid component

Thiago H de Paula Figueiredo

2010-03-08

Replies: Find Java Web Hosting

Author LoginPost Reply
On Mon, 08 Mar 2010 10:30:02 -0300, Eldred Mullany
<eldred.mullany@(protected):

> I am at a loss here, you make it sound easy. First of all how to I
> implement own GridDataSource class and how to I tell tapestry to use it,
> a contribution method I need to add to my AppModule?

You pass an instance of your GridDataSource implementation to the source
parameter of Grid.

> Secondly the interface ie (GridDataSource) uses an onPrepare()to fetch
> the data.

Events are just triggered in page, componente and mixin classes.

> I would then think I have to do some sort of cast / conversion
> to list from a map that I pass to it as a parameter.

Using a GridDataSource doesn't require a list. Grid's source parameter
receives a GridDataSource. Lists are converted automatically.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, software architect and developer, Ars Machina Tecnologia da
Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.