On Sat, 24 Jun 2006 12:50:48 -0400, Yves Sy <[EMAIL PROTECTED]> wrote:

I have an old Tapestry app which I began to slowly port to Tapestry 4. How
do I get a hold of the old visit object configured Tapestry-3 style in a
Tapestry 4 page?

The easiest thing to do is access it the same way you would it T3. So, you'd add a meta value to your .application file. E.g.,

<meta key="org.apache.tapestry.visit-class" value="com.servprise.www.Visit"/>

Then from your page you can just call getVisit(). You will get deprecation warnings, however.


I tried

MyVisit visit = (MyVisit) getApplicationStateManager().get("visit");

but this doesn't work

If you really want to go this route, I recommend just injecting the visit property into one of your pages. Just be sure you don't call your own method getVisit().

--
Kevin


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

Reply via email to