Package org.apache.struts.faces.renderer
Class JavascriptValidatorRenderer
java.lang.Object
jakarta.faces.render.Renderer
org.apache.struts.faces.renderer.AbstractRenderer
org.apache.struts.faces.renderer.JavascriptValidatorRenderer
Renderer
implementation for the
JavascriptValidator
tag from the
Struts-Faces Integration Library.- Version:
- $Rev$ $Date$
-
Field Summary
Fields inherited from class jakarta.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
getJavascriptBegin
(String methods, JavascriptValidatorComponent component) Returns the opening script element and some initial JavaScript.protected String
getJavascriptEnd
(JavascriptValidatorComponent component) Returns the closing script element.protected String
getJavascriptStaticMethods
(org.apache.commons.validator.ValidatorResources resources) protected void
renderEnd
(FacesContext context, UIComponent component, ResponseWriter writer) Render the beginningscript
tag.Methods inherited from class org.apache.struts.faces.renderer.AbstractRenderer
decode, encodeBegin, encodeChildren, encodeEnd, encodeRecursive, getAsString, isDisabled, isReadOnly, isXhtml, renderAttributes, renderBoolean, renderPassThrough, renderStart, searchComponent, setSubmittedValue
Methods inherited from class jakarta.faces.render.Renderer
convertClientId, getConvertedValue, getRendersChildren
-
Constructor Details
-
JavascriptValidatorRenderer
public JavascriptValidatorRenderer()
-
-
Method Details
-
renderEnd
protected void renderEnd(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException Render the beginningscript
tag.- Overrides:
renderEnd
in classAbstractRenderer
- Parameters:
context
- FacesContext for the current requestcomponent
- UIComponent to be renderedwriter
-ResponseWriter
to which the element start should be rendered- Throws:
IOException
- if an input/output error occurs while renderingNullPointerException
- ifcontext
orcomponent
isnull
-
getJavascriptBegin
Returns the opening script element and some initial JavaScript. -
getJavascriptStaticMethods
protected String getJavascriptStaticMethods(org.apache.commons.validator.ValidatorResources resources) -
getJavascriptEnd
Returns the closing script element.
-