Hi Pierre,

visit object can get from the following ways.

MyVisit visit = (MyVisit)getPage().getVisit();
    ...
visit.doSomething();

For  reference I suggest you have a look at the following document.
http://jakarta.apache.org/tapestry/3.0.3/doc/TapestryUsersGuide/state.visit.html

best regards,
Vincent
On 1/20/06, Pierre Gilquin <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I would like to push data in a session-like object in order to exchange data
> between pages.
> I  use a very simple Visit class :
>
> import java.io.Serializable;
> public class Visit implements Serializable{
>   private String texte;
>   public Visit() {
>   }
>   public String getTexte() {
>     return texte;
>   }
>   public void setTexte(String texte) {
>     this.texte = texte;
>   }
>
> }
>
> 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.
>
> My questions are :
>
> Is it correct to use Visit mecanism for having data different for each
> session ?
> What I am missing to use them correctly ?
>
>
> Thanks in advance
>
>
> Pierre
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to