public class ErrorsRenderer extends AbstractRenderer
Renderer
implementation for the errors
tag
from the Struts-Faces Integration Library.
Modifier and Type | Field and Description |
---|---|
protected static MessageResources |
dummy
The dummy message resources for this package.
|
Constructor and Description |
---|
ErrorsRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Render a combination of error messages from JavaServer Faces
Validator s, and Struts messages from form bean
validate() methods and corresponding business logic
error checks. |
protected MessageResources |
resources(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Return the
MessageResources bundle from which
we should return any Struts based error messages. |
decode, encodeBegin, encodeChildren, encodeRecursive, getAsString, isDisabled, isReadOnly, renderAttributes, renderBoolean, renderEnd, renderPassThrough, renderStart, setSubmittedValue
protected static MessageResources dummy
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
Render a combination of error messages from JavaServer Faces
Validator
s, and Struts messages from form bean
validate()
methods and corresponding business logic
error checks.
encodeEnd
in class AbstractRenderer
context
- FacesContext for the request we are processingcomponent
- UIComponent to be renderedIOException
- if an input/output error occurs while renderingNullPointerException
- if context
or component
is nullprotected MessageResources resources(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
Return the MessageResources
bundle from which
we should return any Struts based error messages. If no such
bundle can be located, return null
.
context
- FacesContext for the request we are processingcomponent
- UIComponent to be renderedCopyright © 2000–2016 Apache Software Foundation. All rights reserved.