Class ErrorsRenderer


public class ErrorsRenderer extends AbstractRenderer

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

Version:
$Rev$ $Date$
  • Field Details

    • dummy

      protected static MessageResources dummy
      The dummy message resources for this package.
  • Constructor Details

    • ErrorsRenderer

      public ErrorsRenderer()
  • Method Details

    • encodeEnd

      public void encodeEnd(FacesContext context, UIComponent component) throws IOException

      Render a combination of error messages from JavaServer Faces Validators, 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(FacesContext context, 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