Class ErrorsComponent
java.lang.Object
jakarta.faces.component.UIComponent
jakarta.faces.component.UIComponentBase
jakarta.faces.component.UIOutput
org.apache.struts.faces.component.ErrorsComponent
- All Implemented Interfaces:
PartialStateHolder,StateHolder,TransientStateHolder,ValueHolder,ComponentSystemEventListener,FacesListener,SystemEventListenerHolder,EventListener
Custom component that replaces the Struts
<html:errors> tag.
-
Field Summary
Fields inherited from class jakarta.faces.component.UIOutput
COMPONENT_FAMILY, COMPONENT_TYPEFields inherited from class jakarta.faces.component.UIComponent
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the MessageResources key.Return the component family to which this component belongs.Return the property name for which to report errors.voidrestoreState(FacesContext context, Object state) Restore the state of this component.saveState(FacesContext context) Save the state of this component.voidSet the MessageResources key.voidsetProperty(String property) Set the property name for which to report errors.Methods inherited from class jakarta.faces.component.UIOutput
clearInitialState, getConverter, getLocalValue, getValue, markInitialState, resetValue, setConverter, setValueMethods inherited from class jakarta.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventMethods inherited from class jakarta.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
-
Constructor Details
-
ErrorsComponent
public ErrorsComponent()Create a new
ErrorsComponentwith default properties.
-
-
Method Details
-
getBundle
Return the MessageResources key.
-
setBundle
Set the MessageResources key.
- Parameters:
bundle- The new key
-
getFamily
Return the component family to which this component belongs.
-
getProperty
Return the property name for which to report errors.
-
setProperty
Set the property name for which to report errors.
- Parameters:
property- The new property name
-
restoreState
Restore the state of this component.
- Specified by:
restoreStatein interfaceStateHolder- Overrides:
restoreStatein classUIOutput- Parameters:
context-FacesContextfor the current requeststate- State object from which to restore our state
-
saveState
Save the state of this component.
- Specified by:
saveStatein interfaceStateHolder- Overrides:
saveStatein classUIOutput- Parameters:
context-FacesContextfor the current request
-