Re: After Clicking on table columns table( contrib:TableView) doesn't display doesn't display rows

2009-10-05 Thread seshu babu
Hi , I tried 2 ways both are landing into exceptions. 1. Making the Persist page scoped by using client: @Persist(value = client) @InitialValue(Collections.EMPTY_LIST) public abstract List getUsers(); Its giving me this error :

Re: After Clicking on table columns table( contrib:TableView) doesn't display doesn't display rows

2009-10-01 Thread seshu babu
Activation context is only present in Tapestry 5 I think. I am using Tapestry 4. So I tried persisting getUsers() method but I am getting this error. Am I missing something? --- @Persist

Re: After Clicking on table columns table( contrib:TableView) doesn't display doesn't display rows

2009-10-01 Thread Andreas Andreou
why do you need to call setUsers() inside renderComponent(IMarkupWriter writer, IRequestCycle cycle) ? Since the value is now persisted, you won't need to call the setter. Is the source available online? On Thu, Oct 1, 2009 at 3:31 PM, seshu babu seshum...@gmail.com wrote: Activation context

Re: After Clicking on table columns table( contrib:TableView) doesn't display doesn't display rows

2009-10-01 Thread seshu babu
Thanks ! Andreas It works after I moved setUsers() in renderComponent to @InitialValue annotation like this @Persist @InitialValue(Collections.EMPTY_LIST but table contents are getting displayed even without pressing search button for the second time when I came back to the this page

Re: After Clicking on table columns table( contrib:TableView) doesn't display doesn't display rows

2009-10-01 Thread Andreas Andreou
There are a few ways around this... one is to clear the list on your own when the page is visited in the normal way - in pageBeginRender... Another is to create and use a new PersistenceStrategy.. if you search the wiki (or google for PersistenceStrategy tapestry wiki) you'll find some

After Clicking on table columns table( contrib:TableView) doesn't display doesn't display rows

2009-09-30 Thread seshu babu
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

Re: After Clicking on table columns table( contrib:TableView) doesn't display doesn't display rows

2009-09-30 Thread Andreas Andreou
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

Re: After Clicking on table columns table( contrib:TableView) doesn't display doesn't display rows

2009-09-30 Thread Norman Franke
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