You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by pepone pepone <pe...@gmail.com> on 2005/05/19 13:30:15 UTC

Global and Visit objects

   Hello list

  can any body say me if it's posible access to Global object from the
visit object

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


Re: Global and Visit objects

Posted by Alberto Lepe <al...@gmail.com>.
Here is how to do it:
http://www.tapestryforums.com/viewtopic.php?t=423

2005/5/19, Robert Zeigler <ro...@scazdl.org>:
> The visit object is a POJO. So, you can access the global if you build a
>  way to access the global (I would imagine that in 4.0, you could inject
> the global object into your visit object).
> 
> Robert
> 
> pepone pepone wrote:
> >    Hello list
> >
> >   can any body say me if it's posible access to Global object from the
> > visit object
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
>

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


Re: Global and Visit objects

Posted by Robert Zeigler <ro...@scazdl.org>.
The visit object is a POJO. So, you can access the global if you build a
 way to access the global (I would imagine that in 4.0, you could inject
the global object into your visit object).

Robert

pepone pepone wrote:
>    Hello list
> 
>   can any body say me if it's posible access to Global object from the
> visit object
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


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


Re: Global and Visit objects

Posted by Pablo Ruggia <pr...@gmail.com>.
The visit object is an object that can extend from any Object subclass
or Object itself. So, it has not the Global object inside.
But, if you have the visit object, why can't you get the global Object
? You can do the same thing you do to get the visit object and get the
global object.
In page or engine you can do getGlobal()). If you need to access it
deep in your business code you can use a thread local variable and
access it staticaly.

On 5/19/05, pepone pepone <pe...@gmail.com> wrote:
>    Hello list
> 
>   can any body say me if it's posible access to Global object from the
> visit object
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
>

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