You might check out the Trails code for an example of how to do this, however, be warned it is about to get rewritten. In the new version the ListPage will have a Criteria object and will then be responsible for populating the list of instances in pageBeginRender. This will make it easier to let the Table component do paging and sorting in the database by changing the Criteria, also.
--- Andreas Bulling <[EMAIL PROTECTED]> wrote: > Hi everybody, > > this time I a have a question concerning the best > practice to implement > a search page/functionality as I'm having problems > to use the contrib:Table > with my approach: > > I have one page, called "SearchPerson" which > contains the search form > and calls a perfomQuery(parameters) method with the > submitted form values as > parameters in a second page called "PersonMatches" > (perhaps this approach > isn't good at all, then please tell me). On this > second page I want to display the > results using the contrib:Table but I get the error > message: > > Unable to read OGNL expression '<parsed OGNL > expression>' of > [EMAIL PROTECTED]: > $PersonMatches_57.firstName > > <component id="searchMatches" type="contrib:Table"> > <binding name="source" value="results"/> > <binding name="columns" value="id, firstName, > lastName"/> > <binding name="pageSize" value="10"/> > <binding name="initialSortColumn" value="id"/> > </component> > > @Persist > public abstract List<Person> getResults(); > public abstract void setResults(List<Person> > results); > > I think this has to do with the fact that the "List" > containing > the search results can't be initialized in > pageBeginRender so far. > Am I right?! > > How would you implement such a search page (or > pages)? > > What do I need a ITableColumnModel/IBasicTableModel > for (I haven't found > any explanation and in TapestryTables.war it doesn't > seem to be used). > > Thanks a lot in advance! > Andreas > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
