I've had that happen. Query parameters either weren't @Persist-ed or otherwise not part of the activation context, so when clicking the sort links, it forgot what it was querying. Which does bring up an interesting point: allowing a different activation context for tables to keep the persisted data to a minimum, since there are limits to the amount of data that an activation context can hold due to URL limits.

Norman Franke
Answering Service for Directors, Inc.
www.myasd.com



On Sep 30, 2009, at 7:00 AM, Andreas Andreou wrote:

You understand correctly that the rows are fetched from getUsers
method for the first
time - BUT when clicking on the columns it will NOT sort the rows based on
earlier fetched rows...

It needs to call getUsers again (and then do the sorting) - is there
any logic in that
method that makes it return empty list? Perhaps you need to persist something in
the session to make the subsequent getUsers() calls work correctly.

On Wed, Sep 30, 2009 at 9:14 AM, seshu babu <seshum...@gmail.com> wrote:
Hi,

I am newly learning tapestry.

The Rendered rows vanish if I click on the columns (for sorting of
rows).here is the .page file
--------------------------------------------------------------------------------------------------------------

    - P R O P E R T I E S
     -->
 <property name="selections" />
 <property name="currentUser" />
 <inject property="coreContext" object="spring:coreContext"/>
 <!--
     - C O M P O N E N T S
     -->
 <component id="userTable" type="common/Table">
   <binding name="source" value="users"/>
   <binding name="columns" value="literal:*
userName,lastName,firstName,aliases:aliasesString"/>
   <binding name="initialSortColumn" value="literal:lastName"/>
   <binding name="row" value="currentUser"/>
   <binding name="selections" value="selections"/>
 </component>
--------------------------------------------------------------------------------------------------------------

I understand that the rows are fetched from getUsers method for the first
time & further clicking on the columns it will sort the rows based on
earlier fetched rows.
What's causing these rows to get lost once feteched into table?

I use tapesty 4.1. In the above page common/Table is custom table component
of type contrib:TableView.

Thanks for your help,
Seshu




--
Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


Reply via email to