Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.struts.faces.renderer
Class ErrorsRenderer

    java.lang.Object
      javax.faces.render.Renderer
          org.apache.struts.faces.renderer.AbstractRenderer
              org.apache.struts.faces.renderer.ErrorsRenderer

    public class ErrorsRenderer

extends AbstractRenderer

`Renderer` implementation for the `errors` tag from the Struts-Faces Integration Library.

Version:
  $Rev: 471754 $ $Date: 2006-11-06 08:55:09 -0600 (Mon, 06 Nov 2006) $

Field Summary
`protected static MessageResources` | `dummy` The dummy message resources for this package.

Constructor Summary
`ErrorsRenderer()`

Method Summary
`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.

Methods inherited from class org.apache.struts.faces.renderer.AbstractRenderer
`decode, encodeBegin, encodeChildren, encodeRecursive, getAsString, isDisabled, isReadOnly, renderAttributes, renderBoolean, renderEnd, renderPassThrough, renderStart, setSubmittedValue`

Methods inherited from class javax.faces.render.Renderer
`convertClientId, getConvertedValue, getRendersChildren`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### dummy

    protected static MessageResources dummy

  The dummy message resources for this package.

Constructor Detail

### ErrorsRenderer

    public ErrorsRenderer()

Method Detail

### encodeEnd

    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.

  Overrides:
    `encodeEnd` in class `AbstractRenderer`
  Parameters:
    `context` - FacesContext for the request we are processing
    `component` - UIComponent to be rendered
  Throws:
    `IOException` - if an input/output error occurs while rendering
    `NullPointerException` - if `context` or `component` is null

### resources

    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. If no such bundle can be located, return `null`.

  Parameters:
    `context` - FacesContext for the request we are processing
    `component` - UIComponent to be rendered

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.