ValidateThis API Documentation

ValidateThis.client.jQuery
Class ClientRuleScripter_FutureDate

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

public class ClientRuleScripter_FutureDate
extends AbstractClientRuleScripter

I am responsible for generating JS code for the past date validation.


Method Summary
 any generateInitScript([string defaultMessage='The date entered must be in the future.'])
          I generate the validation 'method' function for the client during fw initialization
private string getGeneratedFailureMessage([any validation], string locale, any parameters)
          I return the generated failure message from the resource bundle for this CRS
 any getParameterDef(any validation)
          I override the parameter def because the VT param names do not match those expected by the jQuery plugin
 
Methods inherited from class ValidateThis.client.jQuery.AbstractClientRuleScripter
determineFailureMessage, generateAddMethod, generateAddRule, generateConditionJSON, generateRuleScript, generateRuleStruct, generateValidationJSON, generateValidationScript, getConditionDef, getCustomFailureMessage, getFailureArgs, getMessageDef, getRuleDef, getSafeSelectorScript, getValType, init, translate
 
Methods inherited from class WEB-INF.cftags.component
 

Method Detail

generateInitScript

public any generateInitScript([string defaultMessage='The date entered must be in the future.'])
I generate the validation 'method' function for the client during fw initialization.

Parameters:
defaultMessage

getGeneratedFailureMessage

private string getGeneratedFailureMessage([any validation], string locale, any parameters)
I return the generated failure message from the resource bundle for this CRS. Override me to customize further.

Overrides:
getGeneratedFailureMessage in class AbstractClientRuleScripter
Parameters:
validation
locale - The locale to use to generate the default failure message.
parameters - The parameters stored in the validation object.

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.

ValidateThis API Documentation