Yeah, it works! I did as you told, - changed the method signature for Object and return MyClacc.class or null when needed. thanks a lot !
On 8 March 2012 17:04, Thiago H de Paula Figueiredo [via Tapestry] < ml-node+s1045711n5547946...@n5.nabble.com> wrote: > On Thu, 08 Mar 2012 12:53:26 -0300, Javix <[hidden > email]<http://user/SendEmail.jtp?type=node&node=5547946&i=0>> > wrote: > > > 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. > > Unless this method is overriding another one, just change its return type > > and do the right thing. ;) Using Response.sendRedirect() isn't very > Tapestry-ish. :) > > -- > 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=5547946&i=1> > For additional commands, e-mail: [hidden > email]<http://user/SendEmail.jtp?type=node&node=5547946&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-tp5547799p5547946.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-tp5547799p5548086.html Sent from the Tapestry - User mailing list archive at Nabble.com.