You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by wang_chunlin <wa...@vanceinfo.com> on 2008/08/26 10:19:52 UTC

tapestry ASO

                Dear sir
                     
I write this letter to ask you some questions. As you know, we have use tapestry5.0.11 in our project, but it happened that the 

ASO object will disappeared some times and new ASO object will be created so that the data with the old ASO disappeared too.
             
About this situation, I have two questions to ask you.

     First, we use ASO object as well as HttpSession object, so is this the reason that new ASO object be produced. 

     The second question is in which condition new ASO object will be created. Please write back to us.thank you!

                                                                                                    yours 
                                                                                                             sincerely
2008-08-01 



wang_chunlin 

 
2008-08-26 



wang_chunlin 

Re: tapestry ASO

Posted by Alex Kotchnev <ak...@gmail.com>.
Wang,
  did you get a chance to review
http://tapestry.apache.org/tapestry5/guide/appstate.html ? It seems to
address some of your questions:


>     First, we use ASO object as well as HttpSession object, so is this the
> reason that new ASO object be produced.


  I'm not sure what you mean by using both the ASO object ant the
HttpSession. Using the ASO implies using the HttpSession (that's where the
ASO is stored in the first place by default), do you mean that you use the
HttpSession in some special way ?


>
>     The second question is in which condition new ASO object will be
> created.


  The doc above indicates that the ASO is created only once when you first
try to access it. Further access would use the existing ASO object. It seems
to me that if your session expired somewhere along the way (e.g. if you have
very short session expiration times) would be one possible reason that your
ASO could be re-created.

Cheers,

Alex Kotchnev