Re: [T5] Dispatcher Page possible?
it's indeed a redirect. so it seems no real serverside page delegation is possible without custom contributions. Stephan Schwab wrote: Christian Gorbach wrote: is it possible to implement a dispatcher/delegate page which is able to forward to another known page class if business logic decides to do so. It should be a pure server-side RequestDispatcher.forward and no redirect. You can return a page from the onActivate() method. But I think that will be a redirect. Stephan -- http://www.stephan-schwab.com -- View this message in context: http://www.nabble.com/-T5--Dispatcher-Page-possible--tf4685060.html#a13403021 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Dispatcher Page possible?
if you return a StreamResponse from your action method tapestry will not do a redirect. you can render your page manually and return its result. i once posted some code snippets you might find useful http://www.nabble.com/T5-selective-rendering-tf3815678.html#a10849354 g, kris Christian Gorbach [EMAIL PROTECTED] 25.10.2007 11:29 Bitte antworten an Tapestry users users@tapestry.apache.org An users@tapestry.apache.org Kopie Thema Re: [T5] Dispatcher Page possible? it's indeed a redirect. so it seems no real serverside page delegation is possible without custom contributions. Stephan Schwab wrote: Christian Gorbach wrote: is it possible to implement a dispatcher/delegate page which is able to forward to another known page class if business logic decides to do so. It should be a pure server-side RequestDispatcher.forward and no redirect. You can return a page from the onActivate() method. But I think that will be a redirect. Stephan -- http://www.stephan-schwab.com -- View this message in context: http://www.nabble.com/-T5--Dispatcher-Page-possible--tf4685060.html#a13403021 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Dispatcher Page possible?
So the answer is: No Tapestry does not support that case out of the box yet. http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html You can see there how Tapestry handles different return types, and it doesn't list what you are talking about. Myself, I like to call it server-side redirect; and it was Tapestry's default behavior before T5. The new way is nice for various reasons, but in edge cases I do miss having the option of the old way. First step is to create a JIRA issue to track what you want. Second, someone will have to take the time to try to hack together a code solution. Might actually be relatively easy, but I don't have the code in front of me right now. Christian Gorbach wrote: it's indeed a redirect. so it seems no real serverside page delegation is possible without custom contributions. Stephan Schwab wrote: Christian Gorbach wrote: is it possible to implement a dispatcher/delegate page which is able to forward to another known page class if business logic decides to do so. It should be a pure server-side RequestDispatcher.forward and no redirect. You can return a page from the onActivate() method. But I think that will be a redirect. Stephan -- http://www.stephan-schwab.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] Dispatcher Page possible?
hi all, is it possible to implement a dispatcher/delegate page which is able to forward to another known page class if business logic decides to do so. It should be a pure server-side RequestDispatcher.forward and no redirect. thanks in advance c)hristian -- View this message in context: http://www.nabble.com/-T5--Dispatcher-Page-possible--tf4685060.html#a13388271 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]