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 :
--
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
implement
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 wh
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 wrote:
> Activation context is only present in T
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
pu
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 persis
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 retur
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
-->