Class DebugPhaseListener
- java.lang.Object
-
- org.apache.myfaces.view.facelets.tag.ui.DebugPhaseListener
-
- All Implemented Interfaces:
Serializable,EventListener,PhaseListener
public class DebugPhaseListener extends Object implements PhaseListener
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DebugPhaseListener()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPhase(PhaseEvent event)voidbeforePhase(PhaseEvent event)static voidcreateFieldDebugInfo(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.static Map<String,List<Object[]>>getDebugInfoMap(String clientId)Returns the debug-info Map for the given component.static List<Object[]>getFieldDebugInfos(String field, String clientId)Returns the field's debug-infos from the component's debug-info Map.PhaseIdgetPhaseId()
-
-
-
Method Detail
-
getDebugInfoMap
public static Map<String,List<Object[]>> getDebugInfoMap(String clientId)
Returns the debug-info Map for the given component. ATTENTION: this method is duplicate in UIInput.- Parameters:
clientId-- Returns:
-
getFieldDebugInfos
public static List<Object[]> getFieldDebugInfos(String field, String clientId)
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
public void afterPhase(PhaseEvent event)
- Specified by:
afterPhasein interfacePhaseListener
-
beforePhase
public void beforePhase(PhaseEvent event)
- Specified by:
beforePhasein interfacePhaseListener
-
getPhaseId
public PhaseId getPhaseId()
- Specified by:
getPhaseIdin interfacePhaseListener
-
-