Try 

@Inject YourService service;

In the class and call whatever method you need from 

onActivate() {
   service.whatEver();
}

?

Or do you want a service instance passed due to some magic url parameter? like 
corsion from number to a db pojo for example?

Jens


Sent from my iPhone

On 23.10.2012, at 07:37, yaswanthbs <yaswant...@gmail.com> wrote:

> Hi All,
> I have gone through a lot of portals, on how onActivate() will be called
> automatically and how it takes the arguments. I found one i.e.,
> *It allows the page to restore its internal state from data encoded into the
> URL*
> But I am not clear about this. 
> 
> I have one scenario
> If I have two pages i.e., I am going from One.java to Two.java and when I am
> in Two.java, I need to call onActivate() and it should access the argument
> like one service class or some class.
> Basically like this.
> onActivate(MyOwnService service) {
> // Here I need to access my service object
> }
> 
> Regards,
> Sai.
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/How-onActivate-will-be-called-automatically-tp5717158.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to