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
Modifier and TypeFieldDescriptionprotected static MessageResources
The dummy message resources for this package.Fields inherited from class jakarta.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encodeEnd
(FacesContext context, UIComponent component) Render a combination of error messages from JavaServer FacesValidator
s, and Struts messages from form beanvalidate()
methods and corresponding business logic error checks.protected MessageResources
resources
(FacesContext context, UIComponent component) Return theMessageResources
bundle 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, setSubmittedValue
Methods 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
Validator
s, and Struts messages from form beanvalidate()
methods and corresponding business logic error checks.- Overrides:
encodeEnd
in classAbstractRenderer
- Parameters:
context
- FacesContext for the request we are processingcomponent
- UIComponent to be rendered- Throws:
IOException
- if an input/output error occurs while renderingNullPointerException
- ifcontext
orcomponent
is null
-
resources
Return the
MessageResources
bundle 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
-