Re: redirect from ajax request

2009-08-10 Thread Howard Lewis Ship
To be specific, when during an Ajax request the component even returns a page class or page instance, Tapestry builds and returns a Link as part of the JSON response, the the client-side loads that Link's URL into the browser address, performing a redirect. There are two implementations of

Re: redirect from ajax request

2009-08-10 Thread Mario Rabe
Actually its was pretty easy (like most things I try to do with tapestry) as soon as I understand the concept. Simply getting the current ComponentEventResultProcessor from the Environment, wrap it in case of exceptions and let it process the return-value. It is really as easy as this, EXCEPT you

Re: redirect from ajax request

2009-08-09 Thread Thiago H. de Paula Figueiredo
Em Sat, 08 Aug 2009 15:26:45 -0300, Mario Rabe mario.r...@googlemail.com escreveu: Hi, Hi! how can I do a redirect from a XHR-request? Here an example to make clear what I want to do: If it was a Tapestry-provided event, you could just return a page instance, a page class, an URL or a

redirect from ajax request

2009-08-08 Thread Mario Rabe
Hi, how can I do a redirect from a XHR-request? Here an example to make clear what I want to do: I've got a couter-component which shows a count and 2 links (up and down). If a link is clicked, the count is changed inPlace. A ValueChanged-Event is triggered on every change. [Pseudo-Code. won't