public final class UIDebug
extends javax.faces.component.UIComponentBase
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
static String |
DEFAULT_HOTKEY |
| Constructor and Description |
|---|
UIDebug() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
debugRequest(javax.faces.context.FacesContext faces) |
void |
encodeBegin(javax.faces.context.FacesContext facesContext)
If our
rendered property is
true, render the beginning of the current state of this
UIComponent to the response contained in the specified
FacesContext. |
List |
getChildren()
Return a mutable
List
representing the child UIComponents associated with this component. |
String |
getFamily()
Return the identifier of the component family to which this component belongs. |
String |
getHotkey() |
void |
setHotkey(String hotkey) |
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTreepublic static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public static final String DEFAULT_HOTKEY
public String getFamily()
javax.faces.component.UIComponent
Return the identifier of the component family to which this component belongs. This
identifier, in conjunction with the value of the rendererType
property, may be used to select the appropriate Renderer for this component
instance. Note this method should NOT return null
getFamily in class javax.faces.component.UIComponentpublic List getChildren()
javax.faces.component.UIComponent
Return a mutable List
representing the child UIComponents associated with this component. The
returned implementation must support all of the standard and optional
List methods, plus support the following additional requirements:
List implementation must implement the
java.io.Serializable interface.null must throw a NullPointerExceptionUIComponent must
throw a ClassCastException.parent property of
the child must be set to this component instance. If the parent
property of the child was already non-null, the child must first be removed from
its previous parent (where it may have been either a child or a facet).parent
property of the child must be set to null.
After the child component has been added to the view,
Application.publishEvent(javax.faces.context.FacesContext, java.lang.Class<? extends javax.faces.event.SystemEvent>, java.lang.Object) must be called, passing
PostAddToViewEvent.class as the first
argument and the newly added component as the second argument if any the following
cases are true.
FacesContext.getCurrentPhaseId() returns
PhaseId.RESTORE_VIEW and partial state saving is enabled.
FacesContext.isPostback() returns false and
FacesContext.getCurrentPhaseId() returns something other
than PhaseId.RESTORE_VIEW
getChildren in class javax.faces.component.UIComponentBasepublic void encodeBegin(javax.faces.context.FacesContext facesContext)
throws IOException
javax.faces.component.UIComponent
If our rendered property is
true, render the beginning of the current state of this
UIComponent to the response contained in the specified
FacesContext. Call
UIComponent.pushComponentToEL(javax.faces.context.FacesContext,javax.faces.component.UIComponent).
Call Application.publishEvent(javax.faces.context.FacesContext, java.lang.Class<? extends javax.faces.event.SystemEvent>, java.lang.Object), passing
PreRenderComponentEvent.class as the first
argument and the component instance to be rendered as the second argument.
If a Renderer is associated with this UIComponent, the actual
encoding will be delegated to
Renderer.encodeBegin(FacesContext, UIComponent).
If our rendered property is false, call
UIComponent.pushComponentToEL(javax.faces.context.FacesContext,javax.faces.component.UIComponent)
and return immediately.
encodeBegin in class javax.faces.component.UIComponentBasefacesContext - FacesContext for the response we are creatingIOException - if an input/output error occurs while renderingpublic static boolean debugRequest(javax.faces.context.FacesContext faces)
public String getHotkey()
public void setHotkey(String hotkey)
Copyright © 2010–2024 JBoss by Red Hat. All rights reserved.