org.chwf.plugin.defaults
Class DefaultScripter

java.lang.Object
  |
  +--org.chwf.plugin.Scripter
        |
        +--org.chwf.plugin.defaults.DefaultScripter

public class DefaultScripter
extends Scripter

A default user plugin implementation that uses the FormValidation.js logic for client-side validation.

Author:
Paul Strack

Fields inherited from class org.chwf.plugin.Scripter
SCRIPTER_ID
 
Constructor Summary
DefaultScripter()
           
 
Method Summary
 void printValidations(ValidationData data, javax.servlet.jsp.JspWriter out)
          Print JavaScript validation logic using the syntax of the FormValidation.js library and BeanFilter property metadata.
 
Methods inherited from class org.chwf.plugin.Scripter
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultScripter

public DefaultScripter()
Method Detail

printValidations

public void printValidations(ValidationData data,
                             javax.servlet.jsp.JspWriter out)
                      throws java.io.IOException,
                             javax.servlet.jsp.JspException
Print JavaScript validation logic using the syntax of the FormValidation.js library and BeanFilter property metadata.

Overrides:
printValidations in class Scripter
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.