[prev in list] [next in list] [prev in thread] [next in thread]
List: tapestry-user
Subject: Re: Visit Object
From: Steven Schermerhorn <geysersteve () gmail ! com>
Date: 2005-04-30 16:30:11
Message-ID: 4273B293.1040609 () gmail ! com
[Download RAW message or body]
Thanks! I think that was the problem I was having!
sastan wrote:
>> public static Visit getVisit(IRequestCycle cycle) {
>> Visit visit = (Visit)cycle.getEngine().getVisit();
>> if(visit == null) {
>> visit = new Visit();
>> cycle.getEngine().setVisit(visit);
>> }
>> return visit;
>> }
>>
>>
>I don't think you need this. You can access the visit object from within
>the component with getPage().getVisit(). The visit object will
>automaticly created on the first access.
>
>sastan
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic