Alternately, use the @ActivationRequestParameter annotation instead of
@Persist. This will put the value into a query parameter of the URL,
which will be unique to each window.

On Fri, Oct 21, 2011 at 7:36 AM, Bo Gao <eli...@gmail.com> wrote:
> Thank you, This is exactly what I want.
>
> On Oct 21, 2011, at 7:09 PM, Thiago H. de Paula Figueiredo wrote:
>
>> On Fri, 21 Oct 2011 08:41:25 -0200, Bo Gao <eli...@gmail.com> wrote:
>>
>>> Hi
>>
>> Hi!
>>
>>>
>>> I have a problem with @Persist values.
>>>
>>> I use Zone in my page, the zone only shows a number 'count'. And when I 
>>> click a link in this page, it will plus count by 1 and refresh the zone.
>>>
>>> I open 2 same page in safari, (two tabs in one safari window, they have a 
>>> same sessionid)
>>> I click link in tab1, zone shows '1', then I click link in tab2, the count 
>>> shows '2' , not '1'.
>>>
>>> The Persist value is shared in one session?
>>
>> Yes, and that's the expected behavior. Same browser, many tabs, all them 
>> share the same session. That's how HTTP and browsers work.
>>
>>> What can I do to separate variables in to different tabs with same 
>>> sessionId?
>>
>> You'll need conversations. Check 
>> http://docs.codehaus.org/display/TYNAMO/tapestry-conversations+guide
>>
>> --
>> Thiago H. de Paula Figueiredo
>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
>> instructor
>> Owner, Ars Machina Tecnologia da Informação Ltda.
>> http://www.arsmachina.com.br
>
> --
> Bo Gao
> eli...@gmail.com
>
>
>
>
>
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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

Reply via email to