webtier@glassfish.java.net

Redirect on Post with view parameters

From: <webtier_at_javadesktop.org>
Date: Thu, 22 Oct 2009 08:05:49 PDT

Hello,

I try to figure out to implement a dialog using the redirect-on-post pattern.

I want to achieve the following:
1) Link to /faces/article.xhtml?id=4711
2) Preload article from database
3) rendering the form
4) form submit, action is saving the article and leaves a "Saved message"
5) redirect to 1) and print the message

Actually only step 4 is the problem. The reason is that the form doesn't offer an attribute include-view-params. How should I solve this?

1) and 2) can easily solved with a view param and <f:event type="preRenderView"
3) is no prob
4) This is step, where I currently loose the view parameter
5) works with return "article?faces-redirect=true" or a navigation rule. Messages can be preserved using the flash,keepMessage method.

Best Regards
Sebastian Hennebrueder
http://www.laliluna.de
[Message sent by forum member 'laliluna' (i_at_laliluna.de)]

http://forums.java.net/jive/thread.jspa?messageID=368979