org.apache.myfaces.renderkit.html.util
Class ExtensionsPhaseListener
java.lang.Object
org.apache.myfaces.renderkit.html.util.ExtensionsPhaseListener
- All Implemented Interfaces:
- java.io.Serializable, java.util.EventListener, javax.faces.event.PhaseListener
public class ExtensionsPhaseListener
- extends java.lang.Object
- implements javax.faces.event.PhaseListener
This phase listener puts in the request the javascript code needed to render the dummyForm
and the autoscroll feature.
The ExtensionsFilter will put this code before the closing &tt;/body> tag.
- Version:
- $Revision: 393991 $ $Date: 2006-04-13 20:40:08 -0400 (Thu, 13 Apr 2006) $
- Author:
- Bruno Aranda (latest modification by $Author: prophecy $)
- See Also:
- Serialized Form
Method Summary |
void |
afterPhase(javax.faces.event.PhaseEvent event)
|
void |
beforePhase(javax.faces.event.PhaseEvent event)
|
static java.lang.String |
getCodeBeforeBodyEnd(javax.faces.context.FacesContext facesContext)
|
javax.faces.event.PhaseId |
getPhaseId()
|
void |
renderCodeBeforeBodyEnd(javax.faces.context.FacesContext facesContext)
Renders stuff such as the dummy form and the autoscroll javascript, which goes before the closing </body> |
static void |
writeCodeBeforeBodyEnd(javax.faces.context.FacesContext facesContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LISTENERS_MAP
public static final java.lang.String LISTENERS_MAP
- See Also:
- Constant Field Values
ExtensionsPhaseListener
public ExtensionsPhaseListener()
getPhaseId
public javax.faces.event.PhaseId getPhaseId()
- Specified by:
getPhaseId
in interface javax.faces.event.PhaseListener
beforePhase
public void beforePhase(javax.faces.event.PhaseEvent event)
- Specified by:
beforePhase
in interface javax.faces.event.PhaseListener
afterPhase
public void afterPhase(javax.faces.event.PhaseEvent event)
- Specified by:
afterPhase
in interface javax.faces.event.PhaseListener
renderCodeBeforeBodyEnd
public void renderCodeBeforeBodyEnd(javax.faces.context.FacesContext facesContext)
throws java.io.IOException
- Renders stuff such as the dummy form and the autoscroll javascript, which goes before the closing </body>
- Throws:
java.io.IOException
getCodeBeforeBodyEnd
public static java.lang.String getCodeBeforeBodyEnd(javax.faces.context.FacesContext facesContext)
throws java.io.IOException
- Throws:
java.io.IOException
writeCodeBeforeBodyEnd
public static void writeCodeBeforeBodyEnd(javax.faces.context.FacesContext facesContext)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright 2006 Apache Software Foundation. All Rights Reserved.