You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Greg Cormier <Gr...@pwgsc.gc.ca> on 2006/02/10 15:28:32 UTC

getVisit is deprecated?

I checked the Javadocs and there's no nice "use abc instead" :)

What's the new way to retrieve your visit object?

Thanks,
Greg

--

public java.lang.Object getVisit()

    Deprecated. 

    Returns the visit object obtained from the engine via IEngine.getVisit(IRequestCycle).

    Specified by:
        getVisit in interface IPage

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: getVisit is deprecated?

Posted by Hugo Palma <hu...@gmail.com>.
That method being deprecated is a way of saying "don't use the old ways,
join the evolution" :o), which in turn means that now you should define ASO
as you like and give them the name you like. See more here
http://jakarta.apache.org/tapestry/UsersGuide/state.html#state.aso


Cheers

Hugo

On 10/02/06, Greg Cormier <Gr...@pwgsc.gc.ca> wrote:
>
> I checked the Javadocs and there's no nice "use abc instead" :)
>
> What's the new way to retrieve your visit object?
>
> Thanks,
> Greg
>
> --
>
> public java.lang.Object getVisit()
>
>     Deprecated.
>
>     Returns the visit object obtained from the engine via IEngine.getVisit
> (IRequestCycle).
>
>     Specified by:
>         getVisit in interface IPage
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>

Re: getVisit is deprecated?

Posted by Jorge Quiroga <jq...@pctltda.com>.
Hi:

AFAIK you can put your session objects in your .page or into your java 
archive as an annotation

@Persist("session")
//Here your public abstract property (or whatever)

This is on the Tap 4 docs and into the Kent's book if you want futher 
information (http://www.agileskills2.org/EWDT/)

Bye.

Greg Cormier escribió:
> I checked the Javadocs and there's no nice "use abc instead" :)
> 
> What's the new way to retrieve your visit object?
> 
> Thanks,
> Greg
> 
> --
> 
> public java.lang.Object getVisit()
> 
>     Deprecated. 
> 
>     Returns the visit object obtained from the engine via IEngine.getVisit(IRequestCycle).
> 
>     Specified by:
>         getVisit in interface IPage
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 
> 
> 

-- 
  Ing. Jorge Enrique Quiroga
Analista programador
PCT LTDA

Teléfonos: 4800069-4800046-4811984
Dirección: Carrera 28 bis Nº 51-08
Bogota D.C. - Colombia


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org