Class DebugPhaseListener
java.lang.Object
org.apache.myfaces.view.facelets.tag.ui.DebugPhaseListener
- All Implemented Interfaces:
PhaseListener
,Serializable
,EventListener
PhaseListener to create extended debug information.
Installed in FacesConfigurator.configureLifecycle() if ProjectStage is Development.
- Version:
- $Revision$ $Date$
- Author:
- Jakob Korherr (latest modification by $Author$)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterPhase
(PhaseEvent event) void
beforePhase
(PhaseEvent event) static void
createFieldDebugInfo
(FacesContext facesContext, String field, Object oldValue, Object newValue, String clientId) Creates the field debug-info for the given field, which changed from oldValue to newValue in the given component.getDebugInfoMap
(String clientId) Returns the debug-info Map for the given component.getFieldDebugInfos
(String field, String clientId) Returns the field's debug-infos from the component's debug-info Map.
-
Constructor Details
-
DebugPhaseListener
public DebugPhaseListener()
-
-
Method Details
-
getDebugInfoMap
Returns the debug-info Map for the given component. ATTENTION: this method is duplicate in UIInput.- Parameters:
clientId
-- Returns:
-
getFieldDebugInfos
Returns the field's debug-infos from the component's debug-info Map. ATTENTION: this method is duplicate in UIInput.- Parameters:
field
-clientId
-- Returns:
-
createFieldDebugInfo
public static void createFieldDebugInfo(FacesContext facesContext, String field, Object oldValue, Object newValue, String clientId) Creates the field debug-info for the given field, which changed from oldValue to newValue in the given component. ATTENTION: this method is duplicate in UIInput.- Parameters:
facesContext
-field
-oldValue
-newValue
-clientId
-
-
afterPhase
- Specified by:
afterPhase
in interfacePhaseListener
-
beforePhase
- Specified by:
beforePhase
in interfacePhaseListener
-
getPhaseId
- Specified by:
getPhaseId
in interfacePhaseListener
-