Just convert your Map into a GridDataSource which you pass to the component.
Take a look at Tapestry's internal implementation of GridDataSource which is constructed from a collection. http://tapestry.formos.com/nightly/tapestry5/apidocs/src-html/org/apache/tapestry5/internal/grid/CollectionGridDataSource.html#line.29 You can also provide a type coercion from a Map to GridDataSource or to Collection. Tapestry will do the coercion for you. On Wed, Jul 15, 2009 at 4:35 AM, cajmrn <caj...@gmail.com> wrote: > > Hello all, > > I am once again stuck and unsure as to how to implement the following. I > have a HashMap that contains a String id for the Key and an ArrayList as > the > value. What I need to do is to display in a table or grid each arrayList as > it corresponds to a Key. > > How would you go about iterating first through the the id and implement it > as a table header for example, then iterate through its corresponding > ArrayList? Basically nesting the loops... Sort or like generating a table > for each entry in the HashMap. Or if it could be implemented in one table > that should be fine as well. > > Any help would be greatly appreciated. > Thanks, > Carlo > > > -- > View this message in context: > http://www.nabble.com/How-do-you-display-a-HashMap%3CString%2C-ArrayList%3Cobject%3E%3E-in-a-.tml-table-tp24490975p24490975.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Best regards, Igor Drobiazko