- All Implemented Interfaces:
- java.io.Serializable, java.util.EventListener, javax.faces.event.PhaseListener
public class JsfJsResourcePhaseListener
extends java.lang.Object
implements javax.faces.event.PhaseListener
This PhaseListener supports the externalization of the JavaScript
(https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=403). In
beforePhase(), the request URI is examined to see if contains the configured
URI for the JavaScript file. If found, it calls RenderKitUtils.writeSunJs()
to write the scrip to the client, then marks the response as complete. This
does not currently work in a Portlet environment, so this feature will need
to be turned off via the context init parameter.
- Author:
- Jason D. Lee (jdlee at dev dot java not net)
- See Also:
- Serialized Form