Actually, it's not so simple if you are using Java 1.4.2 ...

You can use the XML injection in your MyAppBasePage.page, but it will
not inherit (only the annotation version will inherit).  And for an
application that has a lot of pages and is session-based, it gets far
uglier that getVisit().  I agree with Greg, what was simple is now not.

/dev/mrg


-----Original Message-----
From: Stijn Christiaens [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 10, 2006 9:57 AM
To: Tapestry users
Subject: RE: getVisit is deprecated?


Hello Greg,

at first I thought the same thing. Because getVisit was always available
and the injection of an ASO is not.
But in reality it was nice and easy. Just add an entry to the xml
configuration for a new ASO and create a MyAppBasePage which holds the
injected ASO, let all my pages extend that one, and voila: the
simpleness is back :-)


On Fri, 2006-02-10 at 09:41 -0500, Greg Cormier wrote:
> Hmm I see. These ASO's look ugly :( getVisit was nice and simple for
me.
> 
> -----Original Message-----
> From: Hugo Palma [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 10, 2006 9:38 AM
> To: Tapestry users
> Subject: Re: getVisit is deprecated?
> 
> 
> 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> > For additional commands, e-mail:
[EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
Ciao,

Stijn

========================================================================
==
Stijn Christiaens, Researcher
E-mail: [EMAIL PROTECTED]
Phone: +32-2-629 3540
STARLab, Vrije Universiteit Brussel
Pleinlaan 2, Building G10, B-1050 Brussels, Belgium
========================================================================
==



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to