public final class UIDebug
extends jakarta.faces.component.UIComponentBase
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
static String |
DEFAULT_HOTKEY |
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY| Constructor and Description |
|---|
UIDebug() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
debugRequest(jakarta.faces.context.FacesContext faces) |
void |
encodeBegin(jakarta.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()
jakarta.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 jakarta.faces.component.UIComponentpublic List getChildren()
jakarta.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(jakarta.faces.context.FacesContext, java.lang.Class<? extends jakarta.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 jakarta.faces.component.UIComponentBasepublic void encodeBegin(jakarta.faces.context.FacesContext facesContext)
throws IOException
jakarta.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(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent). Call
Application.publishEvent(jakarta.faces.context.FacesContext, java.lang.Class<? extends jakarta.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(jakarta.faces.context.FacesContext,jakarta.faces.component.UIComponent) and return
immediately.
encodeBegin in class jakarta.faces.component.UIComponentBasefacesContext - FacesContext for the response we are creatingIOException - if an input/output error occurs while renderingpublic static boolean debugRequest(jakarta.faces.context.FacesContext faces)
public String getHotkey()
public void setHotkey(String hotkey)
Copyright © 2010–2022 JBoss by Red Hat. All rights reserved.