Class FormRenderer


public class FormRenderer extends AbstractRenderer

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

Version:
$Rev$ $Date$
  • Constructor Details

    • FormRenderer

      public FormRenderer()
  • Method Details

    • decode

      public void decode(FacesContext context, UIComponent component)

      Perform setup processing that will be required for decoding the incoming request.

      Overrides:
      decode in class AbstractRenderer
      Parameters:
      context - FacesContext for the request we are processing
      component - UIComponent to be processed
      Throws:
      NullPointerException - if context or component is null
    • encodeBegin

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

      Render the beginning of an HTML <form> control.

      Overrides:
      encodeBegin 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
    • encodeEnd

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

      Render the ending of an HTML <form> control.

      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
    • action

      protected String action(FacesContext context, UIComponent component)

      Calculate and return the value to be specified for the action attribute on the <form> element to be rendered.

      Parameters:
      context - FacesContext for the current request
      component - Component being processed