On Mon, 25 Apr 2016 07:07:48 -0300, Nathan Quirynen <nat...@pensionarchitects.be> wrote:

Hey,

Hi!


By returning "this" in the onSuccess event, a redirect happens resulting
in a new request. If you want to preserve data between requests, you
will have to save it into the http session.
If you add http session persistence, the data will be available after a
new request. <http://tapestry.apache.org/persistent-page-data.html>

Simple example for your case:

@Persist
@Property
private Set<Street> streets;

Please don't store search results in the session. Your webapp RAM usage will be much larger. As Felix already suggested, store the search parameters instead.

Also you can make use of PersistenceConstants.FLASH to let Tapestry
remove it from the session after first access automatically.

+1

Another option is making use of AJAX where the updated grid html is sent
back in the response and updated on the client side. If you want to
achieve this you'll need to add a Zone around the grid and make your
Form submit with AJAX.

+1 again. :)

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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

Reply via email to