On Thu, Mar 8, 2012 at 4:17 PM, Javix <s.camb...@gmail.com> wrote:

> Is it possible to redirect to another page from inside a void method
> annotated as follows:
>

Yes,

@Inject Response response;

@OnEvent(value = EventConstants.ACTIVATE)
   public void initPage(Object[] parameters)  throws IOException{
....
      if(something goes wrong) {
           response.sendRedirect("Some url");
     }

Cheers,
Dragan Sahpaski


> @OnEvent(value = EventConstants.ACTIVATE)
>    public void initPage(Object[] parameters) {
> ....
>       if(something goes wrong) {
>            redirect to home page
>      }
>
>
> }
>
> Thank you
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Hwo-to-redirect-to-another-page-from-a-vois-OnEvent-method-tp5547799p5547799.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
>
>

Reply via email to