Pierre Gilquin <pgilquin <at> bluewin.ch> writes:

> In my page, when trying to access the visit object (    Visit visit = 
> (Visit)getVisit();), I get a ClassCastException
> I can see in the debugger that _visit object is null.
> 
> Is it correct to use Visit mecanism for having data different for each 
> session ?

Yes.

> What I am missing to use them correctly ?

As you're getting a ClassCastException, you're probably not specifying
the visit class in the .application file:

<application ...>
  <property name="org.apache.tapestry.visit-class" value="com.foo.Visit"/>
</application>

Or you have done it without restarting the app.

--
Author of a book for learning Tapestry (www.agileskills2.org/EWDT)


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

Reply via email to