|
ValidateThis API Documentation | ||||
| FRAMES | |||||
WEB-INF.cftags.component
ValidateThis.client.AbstractClientScriptWriter
public class AbstractClientScriptWriter
I am an abstract class responsible for generating script for a particular JS implementation (e.g., qForms, jQuery, etc.).
| Constructor Summary | |
|---|---|
init(any childObjectFactory, any Translator, any messageHelper, string JSRoot, string extraClientScriptWriterComponentPaths, string defaultFailureMessagePrefix, string vtFolder)
I build a new ClientScriptWriter |
|
| Method Summary | |
|---|---|
any |
generateJSFieldRefence(any fieldname, Any formName)
I generate the JS script 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()
I generate the JS to do some initial setup |
any |
generateValidationScript(any validation, Any formName, Any locale)
I generate the JS script required to implement a validation |
any |
getRuleScripters()
|
any |
getSafeFormName(Any formName)
I generate a form name that is safe to use as part of a JS variable |
private void |
setRuleScripters()
I create rule validator objects from a list of component paths |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(any childObjectFactory, any Translator, any messageHelper, string JSRoot, string extraClientScriptWriterComponentPaths, string defaultFailureMessagePrefix, string vtFolder)
childObjectFactoryTranslatormessageHelperJSRootextraClientScriptWriterComponentPathsdefaultFailureMessagePrefixvtFolder| Method Detail |
|---|
public any generateJSFieldRefence(any fieldname, Any formName)
fieldname - The field name.formName - The form name.public any generateJSIncludeScript()
public any generateLocaleScript([Any locale=''])
localepublic any generateScriptFooter()
public any generateScriptHeader(any formName)
formNamepublic any generateVTSetupScript()
public any generateValidationScript(any validation, Any formName, Any locale)
validation - The validation struct that describes the validation.formNamelocalepublic any getRuleScripters()
public any getSafeFormName(Any formName)
formNameprivate void setRuleScripters()
|
ValidateThis API Documentation | ||||
| FRAMES | |||||