I don't really know, the method signature was defined as void that's why I'm asking. And as it is void, in java these methods can not return anything.
On 8 March 2012 16:50, Thiago H de Paula Figueiredo [via Tapestry] < ml-node+s1045711n5547914...@n5.nabble.com> wrote: > On Thu, 08 Mar 2012 12:17:47 -0300, Javix <[hidden > email]<http://user/SendEmail.jtp?type=node&node=5547914&i=0>> > wrote: > > > Is it possible to redirect to another page from inside a void method > > annotated as follows: > > Does it really need to be void? If you don't want to redirect, just return > > null. It's the same as returning void. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and instructor > Owner, Ars Machina Tecnologia da Informação Ltda. > http://www.arsmachina.com.br > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=5547914&i=1> > For additional commands, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=5547914&i=2> > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://tapestry.1045711.n5.nabble.com/How-to-redirect-to-another-page-from-a-void-OnEvent-method-tp5547799p5547914.html > To unsubscribe from How to redirect to another page from a void @OnEvent > method, click > here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5547799&code=cy5jYW1ib3VyQGdtYWlsLmNvbXw1NTQ3Nzk5fC0xMzg3Nzk1MDI3> > . > NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-redirect-to-another-page-from-a-void-OnEvent-method-tp5547799p5547922.html Sent from the Tapestry - User mailing list archive at Nabble.com.