ValidateThis API Documentation

ValidateThis.client.jQuery
Class ClientScriptWriter_jQuery

WEB-INF.cftags.component
        extended by ValidateThis.client.AbstractClientScriptWriter
            extended by ValidateThis.client.jQuery.ClientScriptWriter_jQuery

public class ClientScriptWriter_jQuery
extends AbstractClientScriptWriter

I am responsible for generating jQuery Javascript statements to implement validations.


Method Summary
 any generateConditionJSON(any validation, Any formName, [Any locale=''])
          I generate the JSON condition required to implement a validation
 any generateJSFieldRefence(any fieldname, Any formName)
          I generate the jQuery selector that references the field name
 any generateJSIncludeScript()
          I generate the JS to load the required JS libraries
 any generateLocaleScript([Any locale=''])
          I generate the JS to load the required locale specific JS libraries
 any generateScriptFooter()
          I generate the JS script required at the top of the script block
 any generateScriptHeader(any formName)
          I generate the JS script required at the top of the script block
 any generateVTSetupScript([Any locale=''])
          I generate the JS to do some initial setup
 any generateValidationJSON(any validation, Any locale, Any formName)
          I generate the JSON rule required to implement a validation
 any generateValidationScript(any validation, Any formName, Any locale)
          I generate the JS script required to implement a validation
 
Methods inherited from class ValidateThis.client.AbstractClientScriptWriter
getRuleScripters, getSafeFormName, init, setRuleScripters
 
Methods inherited from class WEB-INF.cftags.component
 

Method Detail

generateConditionJSON

public any generateConditionJSON(any validation, Any formName, [Any locale=''])
I generate the JSON condition required to implement a validation.

Parameters:
validation - The validation struct that describes the validation.
formName
locale

generateJSFieldRefence

public any generateJSFieldRefence(any fieldname, Any formName)
I generate the jQuery selector that references the field name.

Overrides:
generateJSFieldRefence in class AbstractClientScriptWriter
Parameters:
fieldname - The field name.
formName - The form name.

generateJSIncludeScript

public any generateJSIncludeScript()
I generate the JS to load the required JS libraries.

Overrides:
generateJSIncludeScript in class AbstractClientScriptWriter

generateLocaleScript

public any generateLocaleScript([Any locale=''])
I generate the JS to load the required locale specific JS libraries.

Overrides:
generateLocaleScript in class AbstractClientScriptWriter
Parameters:
locale

generateScriptFooter

public any generateScriptFooter()
I generate the JS script required at the top of the script block.

Overrides:
generateScriptFooter in class AbstractClientScriptWriter

generateScriptHeader

public any generateScriptHeader(any formName)
I generate the JS script required at the top of the script block.

Overrides:
generateScriptHeader in class AbstractClientScriptWriter
Parameters:
formName

generateVTSetupScript

public any generateVTSetupScript([Any locale=''])
I generate the JS to do some initial setup.

Overrides:
generateVTSetupScript in class AbstractClientScriptWriter
Parameters:
locale

generateValidationJSON

public any generateValidationJSON(any validation, Any locale, Any formName)
I generate the JSON rule required to implement a validation.

Parameters:
validation - The validation struct that describes the validation.
locale
formName

generateValidationScript

public any generateValidationScript(any validation, Any formName, Any locale)
I generate the JS script required to implement a validation.

Overrides:
generateValidationScript in class AbstractClientScriptWriter
Parameters:
validation - The validation struct that describes the validation.
formName
locale

ValidateThis API Documentation