ValidateThis API Documentation

ValidateThis.client.jQuery
Class ClientRuleScripter_Custom

WEB-INF.cftags.component
        extended by ValidateThis.client.jQuery.AbstractClientRuleScripter
            extended by ValidateThis.client.jQuery.ClientRuleScripter_Custom

public class ClientRuleScripter_Custom
extends AbstractClientRuleScripter

I am responsible for generating JS code for the custom validation.


Method Summary
 any generateRuleScript(any validation, string locale, [string selector=''])
          I generate the JS script required to implement a validation
 any getParameterDef(any validation)
          I override the parameter def because the VT param names do not match those expected by the jQuery plugin
 any getValType()
          I override the val type because jQuery uses the built-in 'remote' type for this
 
Methods inherited from class ValidateThis.client.jQuery.AbstractClientRuleScripter
determineFailureMessage, generateAddMethod, generateAddRule, generateConditionJSON, generateRuleStruct, generateValidationJSON, generateValidationScript, getConditionDef, getCustomFailureMessage, getFailureArgs, getGeneratedFailureMessage, getMessageDef, getRuleDef, getSafeSelectorScript, init, translate
 
Methods inherited from class WEB-INF.cftags.component
 

Method Detail

generateRuleScript

public any generateRuleScript(any validation, string locale, [string selector=''])
I generate the JS script required to implement a validation.

Overrides:
generateRuleScript in class AbstractClientRuleScripter
Parameters:
validation - The validation struct that describes the validation.
locale
selector

getParameterDef

public any getParameterDef(any validation)
I override the parameter def because the VT param names do not match those expected by the jQuery plugin.

Overrides:
getParameterDef in class AbstractClientRuleScripter
Parameters:
validation - The validation object that describes the validation.

getValType

public any getValType()
I override the val type because jQuery uses the built-in 'remote' type for this.

Overrides:
getValType in class AbstractClientRuleScripter

ValidateThis API Documentation