On Saturday 17 December 2005 13:07, skydiverx wrote: > 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); } > } > } >
Unfortunately as you see from above what you posted to the forum appears on the mailing list as a complete mess. I have gone to the forum to see your code, so I can sort of see what you are doing. I normally initialise stuff like that from the database during the PageValidate event rather than there. But I don't think there is any problem doing it where you do. I learnt about using the component from Kent's fabulous book. The first four chapters are on-line, you have to pay for the rest. The chapter on the table is Chapter 7. I would recommend getting it to help you through this. http://www.agileskills2.org/EWDT/ -- Alan Chandler http://www.chandlerfamily.org.uk Open Source. It's the difference between trust and antitrust. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
