org.chwf.plugin
Class Scripter
java.lang.Object
|
+--org.chwf.plugin.Scripter
- Direct Known Subclasses:
- DefaultScripter
- public abstract class Scripter
- extends java.lang.Object
An abstract superclass for custom client-side validation scripting.
The plugin can be customized if the developer wishes to use some client-side
validation library other than FormValidation.js.
- Author:
- Paul Strack
Field Summary |
static java.lang.String |
SCRIPTER_ID
Id for the scripter plugin in the config file. |
Constructor Summary |
protected |
Scripter()
No-op constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCRIPTER_ID
public static final java.lang.String SCRIPTER_ID
- Id for the scripter plugin in the config file.
Scripter
protected Scripter()
- No-op constructor.
getInstance
public static Scripter getInstance()
- Returns the
Scripter
object.
- Returns:
- The scripter.
printValidations
public abstract void printValidations(ValidationData data,
javax.servlet.jsp.JspWriter out)
throws java.io.IOException,
javax.servlet.jsp.JspException
- Print JavaScript validation logic for a particular input tag.
- Parameters:
data
- The validation data.out
- The JspWriter for output.- Throws:
java.io.IOException
- For IO exceptions.javax.servlet.jsp.JspException
- If the property cannot be initialized.
Copyright © 2002-2004, Paul Strack. All Rights Reserved.