Message Handling with JSF and Redirects
Sunday, March 1st, 2009The JavaServer Faces-Framework offers a mechanism to present messages to the user. The meesages can be created by the framework itself, for example during the conversion oder validation phase. But it is also possible to create custom messages within your actual application.
But there is a problem, if you use redirects instead of forwards, e.g. by using the <redirect/> tag in faces.config.xml. A redirect leads to a second request loading the following page. The messages are only valid in the current request and are thus not displayed on the following page.
(more…)