>From my point of view activate/passivate should be used with simple
parameter (numerical ids...) if you want to persist complex object accross
request, @Persist is maybe a better solution that serializing the whole
criterium object in the request.

@Persist("flash") should be deterministic, in your case :

1. Submit set the datas on the target page and return the page instance
2. Tapestry redirects your user to the target (result) page (which give a
new URL)
3. The data with @Persist("flash") should be restored for the first access
only

Another way to achieve, if it suits to your ergonomy is to use a Zone to
display the result under your criterium filter, to achieve this use
something like :

<div t:type="zone" t:id="myZone">
   <form t:type="form" t:zone="myZone">
   ...
   </form>
   <div class="t-zone-update">

   </div>
</div>

<t:block id="searchResult">
...
</t:block>

And return the block that will display result in the success method, this
will update the div marked with class 't-zone-update'.

Check component reference for more information
http://tapestry.apache.org/tapestry5.1/guide/ajax.html
Chapter called 'zone'

2009/10/6 cordenier christophe <christophe.corden...@gmail.com>

> Can you give us the URL that fails ?
>
>
> 2009/10/6 976 <amsc...@gmail.com>
>
>>
>> You mean in ListClients?
>> When I add EventContext it's always class EmptyEventContext.
>>
>>
>> Thiago H. de Paula Figueiredo wrote:
>> >
>> >
>> > Em Tue, 06 Oct 2009 10:58:03 -0300, 976 <amsc...@gmail.com> escreveu:
>> >
>> >> Thanks for fast response.
>> >> ListClients:
>> >>      public void onActivate(){
>> >
>> > You're ignoring the activation context. You should get it through an
>> > onActivate(EventContext context) method and then set the field(s)
>> > containing the search criteria.
>> >
>> > --
>> > Thiago H. de Paula Figueiredo
>> > Independent Java consultant, developer, and instructor
>> > http://www.arsmachina.com.br/thiago
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> > For additional commands, e-mail: users-h...@tapestry.apache.org
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/passing-values-between-pages-%28search--%3E-result%29-tp25765698p25769572.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>

Reply via email to