Em Wed, 23 Sep 2009 21:08:16 -0300, thermus <msch...@gmail.com> escreveu:
Thiago,
Hi!
I know this thread is old, but I had a related question. If I submit a form to a response page, what method can be used in the response page to redirect to a URL like your "use both!" example? i.e. How can I append "?parameter3=3¶meter4=4..." to the end of the context when redirecting after POST?
Inject the PageRenderLinkSource and use its createPageRenderLinkWithContext() method to generate a Link. In this Link object, use its addParameter() method to add the query parameters (?parameter3=3¶meter4=4). Then return this Link in some event handler method (onSubmit or any other). I have not tested it, though.
-- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org