Package org.apache.struts.faces.renderer
Class ErrorsRenderer
java.lang.Object
jakarta.faces.render.Renderer
org.apache.struts.faces.renderer.AbstractRenderer
org.apache.struts.faces.renderer.ErrorsRenderer
Renderer implementation for the errors tag
from the Struts-Faces Integration Library.
- Version:
- $Rev$ $Date$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static MessageResourcesThe dummy message resources for this package.Fields inherited from class jakarta.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeEnd(FacesContext context, UIComponent component) Render a combination of error messages from JavaServer FacesValidators, and Struts messages from form beanvalidate()methods and corresponding business logic error checks.protected MessageResourcesresources(FacesContext context, UIComponent component) Return theMessageResourcesbundle from which we should return any Struts based error messages.Methods inherited from class org.apache.struts.faces.renderer.AbstractRenderer
decode, encodeBegin, encodeChildren, encodeRecursive, getAsString, isDisabled, isReadOnly, isXhtml, renderAttributes, renderBoolean, renderEnd, renderPassThrough, renderStart, searchComponent, setSubmittedValueMethods inherited from class jakarta.faces.render.Renderer
convertClientId, getConvertedValue, getRendersChildren
-
Field Details
-
dummy
The dummy message resources for this package.
-
-
Constructor Details
-
ErrorsRenderer
public ErrorsRenderer()
-
-
Method Details
-
encodeEnd
Render a combination of error messages from JavaServer Faces
Validators, and Struts messages from form beanvalidate()methods and corresponding business logic error checks.- Overrides:
encodeEndin classAbstractRenderer- Parameters:
context- FacesContext for the request we are processingcomponent- UIComponent to be rendered- Throws:
IOException- if an input/output error occurs while renderingNullPointerException- ifcontextorcomponentis null
-
resources
Return the
MessageResourcesbundle from which we should return any Struts based error messages. If no such bundle can be located, returnnull.- Parameters:
context- FacesContext for the request we are processingcomponent- UIComponent to be rendered
-