The following client-side validation widgets are available from Dojo:
ValidationTextbox
– Provides basic validation functionality, such as required valuesIntegerTextbox
– Tests for signed or unsigned integer input and rangesRealNumberTextbox
– Tests for real number input and rangesCurrencyTextbox
– Tests if input denotes a monetary value or rangeIpAddressTextbox
– Tests for a valid IP addressUrlTextbox
– Tests for a valid URLEmailTextbox
– Tests for a valid email addressEmailListTextbox
– Tests for a list of valid email addressesDateTextbox
– Tests for a valid date in specified localeTimeTextbox
– Tests for a valid timeUsStateTextbox
– Tests for a United States state abbreviationUsZipTextbox
– Tests if input is a US zip code: validates zip-5 and zip-5 plus 4UsSocialSecurityNumberTextbox
– Tests for a United States Social Security numberUsPhoneNumberTextbox
– Tests for a United States 10-digit telephone number, extension is optionalRegexpTextbox
– Tests input based on conformity to a specified regular expression
Refer to the Dojo documentation for details on implementing specific widgets.
The following validation widgets are available:
SimpleComboBox
– forces a selection in a drop-down box (usedsp:select
withSimpleComboBox
)TextArea
– performs range validation on the length of thetextarea
contents (usedsp:input
instead ofdsp:textarea
withTextArea
, sincedsp:textarea
does not accept Dojo widgets)