You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tapestry User List <my...@gmail.com> on 2006/01/23 10:17:51 UTC

how to call a service instead of a page

The method Activate from IRequestCycle is used for calling a page. How could
I do to activate a service instead of a page?

Thanks a lot,

Didier

Re: how to call a service instead of a page

Posted by Ron Piterman <rp...@gmx.net>.
IFAIK you should get a hold of an ILink to the service you want (by 
calling the engine service's getLink method), then get an URL from the 
ILink and call requestCycle's send redirect.

Cheers,
ROn


Tapestry User List wrote:
> The method Activate from IRequestCycle is used for calling a page. How could
> I do to activate a service instead of a page?
> 
> Thanks a lot,
> 
> Didier
> 


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


Re: how to call a service instead of a page

Posted by Shing Hing Man <ma...@yahoo.com>.
To call the restart service, say, inject the restart
service into your page .java class:

    @InjectObject("engine-service:restart")
    public abstract IEngineService
getRestartService();

           
     // To call restart service
           IEngineService restartService =
getRestartService();
            restartService.service(getRequestCycle());
   
Shing


--- Tapestry User List <my...@gmail.com>
wrote:

> The method Activate from IRequestCycle is used for
> calling a page. How could
> I do to activate a service instead of a page?
> 
> Thanks a lot,
> 
> Didier
> 


Home page :
  http://uk.geocities.com/matmsh/index.html


		
___________________________________________________________ 
NEW Yahoo! Cars - sell your car and browse thousands of new and used cars online! http://uk.cars.yahoo.com/

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