ValidateThis API Documentation

ValidateThis.client
Class ClientValidator

WEB-INF.cftags.component
        extended by ValidateThis.client.ClientValidator

public class ClientValidator
extends WEB-INF.cftags.component

I generate client side validations from Business Object validations.


Constructor Summary
init(any childObjectFactory, any translator, any messageHelper, any fileSystem, any transientFactory, string JSRoot, string extraClientScriptWriterComponentPaths, string defaultFailureMessagePrefix, string vtFolder, string defaultLocale)
          I build a new ClientValidator
 
Method Summary
 any getGeneratedJavaScript(any scriptType, any JSLib, [any formName=''], [Any locale='[runtime expression]'])
          I ask the appropriate client script writer to generate some JS for me
 any getRuleScripters([any JSLib='[runtime expression]'])
 any getScriptWriter(any JSLib)
 any getScriptWriters()
 any getValidationRulesStruct(any Validations, any formName, any JSLib, [Any locale='[runtime expression]'], [Any theObject=''])
          I generate the client side rules structure
 any getValidationScript(any Validations, any formName, any JSLib, [Any locale='[runtime expression]'], [Any theObject=''])
          I generate the JS script
private void setScriptWriters()
          I create script writer objects from a list of component paths
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

Public init(any childObjectFactory, any translator, any messageHelper, any fileSystem, any transientFactory, string JSRoot, string extraClientScriptWriterComponentPaths, string defaultFailureMessagePrefix, string vtFolder, string defaultLocale)
I build a new ClientValidator

Parameters:
childObjectFactory
translator
messageHelper
fileSystem
transientFactory
JSRoot
extraClientScriptWriterComponentPaths
defaultFailureMessagePrefix
vtFolder
defaultLocale
Method Detail

getGeneratedJavaScript

public any getGeneratedJavaScript(any scriptType, any JSLib, [any formName=''], [Any locale='[runtime expression]'])
I ask the appropriate client script writer to generate some JS for me.

Parameters:
scriptType - Current valid values are JSInclude, Locale and VTSetup.
JSLib
formName
locale

getRuleScripters

public any getRuleScripters([any JSLib='[runtime expression]'])

Parameters:
JSLib

getScriptWriter

public any getScriptWriter(any JSLib)

Parameters:
JSLib

getScriptWriters

public any getScriptWriters()


getValidationRulesStruct

public any getValidationRulesStruct(any Validations, any formName, any JSLib, [Any locale='[runtime expression]'], [Any theObject=''])
I generate the client side rules structure.

Parameters:
Validations
formName
JSLib
locale
theObject

getValidationScript

public any getValidationScript(any Validations, any formName, any JSLib, [Any locale='[runtime expression]'], [Any theObject=''])
I generate the JS script.

Parameters:
Validations
formName
JSLib
locale
theObject

setScriptWriters

private void setScriptWriters()
I create script writer objects from a list of component paths


ValidateThis API Documentation