Wow, thank you guys for your prompt response!

I will take your questions in order.

We picked the source/coulmn rout over the ITableModel because the docs 
mentioned thet you could use a Collection out of the box (so to speak).

We have release 4.0, rc1 of tapestry. And the docs are abysmal regarding the 
table component. The page says "under construction", although we got some info 
out of the TableView doc.

We have also found a tutorial at 
https://tapestrywebcomponentexamples.dev.java.net/, who initially looked good 
but once we started down that road proved to assume a level of familiarity with 
the table component we do not have. 

We thought it could have something to do with the gameList being empty so we 
tried this:

package com.boardgamersarena.gamebrowser;

import java.util.ArrayList;
import java.util.List;
import org.apache.tapestry.event.PageEvent;
import org.apache.tapestry.html.BasePage;

public abstract class Home extends BasePage
{
   public abstract List getGameList();
   public abstract void setGameList(List gameList);
   
    @SuppressWarnings("unchecked")
   public void pageBeginRender(PageEvent event)
    {
        List list = getGameList();

        if (list == null)
        {
           List rows = new ArrayList();
           rows.add(new 
GameListRow("Testgame", "2.0", "Some description"));
            setGameList(rows);
        }
    }
}

Have we made something wrong above perhaps. We don't know, but we assumed you 
could init the list like that.

 - Tom.


-------------------- m2f --------------------

Sent from www.TapestryForums.com

Read this topic online here: <<topic_link>>

http://www.tapestryforums.com/viewtopic.php?p=12135#12135

-------------------- m2f --------------------


Reply via email to