Differences between revisions 3 and 4
Revision 3 as of 2008-09-11 15:21:03
Size: 1232
Editor: ocs
Comment: Joined line with default value with the previous line
Revision 4 as of 2009-09-20 23:00:53
Size: 1232
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

To make use of the RedirectTracker you have to:

  • Add the myfaces sandbox to your project.
  • Configure the init parameter "org.apache.myfaces.redirectTracker.POLICY" in your web.xml file, setting the value to one of the following:
    • org.apache.myfaces.custom.redirectTracker.policy.FullRedirectTrackPolicy

      • captures the locale, request scoped beans, messages
    • org.apache.myfaces.custom.redirectTracker.policy.MessagesRedirectTrackPolicy

      • captures messages only
    • org.apache.myfaces.custom.redirectTracker.policy.NoopRedirectTrackPolicy

      • captures nothing - default setting
  • Configure the init parameter "org.apache.myfaces.redirectTracker.MAX_REDIRECTS" if necessary (default is 20).

If everything is correctly configured, you should see an additional parameter "_rtid=" added to the url (after the redirect). This url parameter will be used to find the captured data within the session. Simply adding the data to the session will not work with browser back, reload, multiple windows etc.

Other discussions of RedirectTracker.

RedirectTracker (last edited 2009-09-20 23:00:53 by localhost)