Class JavascriptValidatorRenderer

java.lang.Object
jakarta.faces.render.Renderer
org.apache.struts.faces.renderer.AbstractRenderer
org.apache.struts.faces.renderer.JavascriptValidatorRenderer

public class JavascriptValidatorRenderer extends AbstractRenderer
Renderer implementation for the JavascriptValidator tag from the Struts-Faces Integration Library.

Version:
$Rev$ $Date$
  • Constructor Details

    • JavascriptValidatorRenderer

      public JavascriptValidatorRenderer()
  • Method Details

    • renderEnd

      protected void renderEnd(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException
      Render the beginning script tag.
      Overrides:
      renderEnd in class AbstractRenderer
      Parameters:
      context - FacesContext for the current request
      component - UIComponent to be rendered
      writer - ResponseWriter to which the element start should be rendered
      Throws:
      IOException - if an input/output error occurs while rendering
      NullPointerException - if context or component is null
    • getJavascriptBegin

      protected String getJavascriptBegin(String methods, JavascriptValidatorComponent component)
      Returns the opening script element and some initial JavaScript.
    • getJavascriptStaticMethods

      protected String getJavascriptStaticMethods(org.apache.commons.validator.ValidatorResources resources)
    • getJavascriptEnd

      protected String getJavascriptEnd(JavascriptValidatorComponent component)
      Returns the closing script element.