Share

WebFlow Navigation Manager

Tracker: Bugs

5 Fix documentation for JSF - ID: 1460640
Last Update: Tracker Item Submitted ( johangorter )

De configuration for JSF as mentioned in the
documentation is hazardous.

There are two filters required for the WFNM session
cleaner to work with JSF, the SessionBindingFilter and
the PageNotifierFilter. However, great care should be
taken to configure of these two. Using the
configuration mentioned the documentation can lead to
unpredictable results.

The SessionBindingFilter stores the changes to the
sessions contents in a threadlocal. This threadlocal is
not removed when exiting the filter and not explicitly
created when entering the filter, leaving the
opportunity for requests to pick up changes from a
previous request.

The PageNotifierFilter clears the threadlocal when
exiting the filter.

In the configuration, care should be taken that the
PageNotifierFilter is always called when the
SessionBindingFilter is called. This cannot be achieved
by binding the pageNotifierFilter to .jsp pages,
because some JSF requests may not result in the
execution of a .jsp, but in a redirect.

The only valid way to configure WFNM is as follows (the
order IS important)

<filter-mapping>
<filter-name>wfnmPageNotifierFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>

<filter-mapping>
<filter-name>wfnmSessionBindingFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>


Johan Gorter ( johangorter ) - 2006-03-29 12:42

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.