Hi Isomorphic,
please see these docs:
It seems to me that validators are executed in the order of definition, which is a good and reasonable thing, especially considering stopIfFalse, which would not make sense with a random order.
Could you confirm and include the information that the validators are executed in order in the docs?
Best regards
Blama
please see these docs:
A validator describes a check that should be performed on a value the user is trying to save.
This class is not meant to be created and used, it is actually documentation of settings allowed in a DataSource descriptor (.ds.xml file), for use with Smart GWT Pro Edition and above. See com.smartgwt.client.docs.serverds for how to use this documentation.
Validators are specified for DataSource fields via the DataSourceField.validators property. Validators that need not be run on the server can also be specified for a specific FormItem or ListGridField.
Smart GWT supports a powerful library of ValidatorTypes which have identical behavior on both the client and the server.
Beyond this, custom validators can be defined on the client and custom validation logic added on the server. Note that the regexp and mask validator types are very flexible and can be used to perform virtually any kind of formatting check that doesn't involve some large external dataset.
Custom validators can be reused on the client by adding them to the global validator list, via the addValidator() method.
This class is not meant to be created and used, it is actually documentation of settings allowed in a DataSource descriptor (.ds.xml file), for use with Smart GWT Pro Edition and above. See com.smartgwt.client.docs.serverds for how to use this documentation.
Validators are specified for DataSource fields via the DataSourceField.validators property. Validators that need not be run on the server can also be specified for a specific FormItem or ListGridField.
Smart GWT supports a powerful library of ValidatorTypes which have identical behavior on both the client and the server.
Beyond this, custom validators can be defined on the client and custom validation logic added on the server. Note that the regexp and mask validator types are very flexible and can be used to perform virtually any kind of formatting check that doesn't involve some large external dataset.
Custom validators can be reused on the client by adding them to the global validator list, via the addValidator() method.
Could you confirm and include the information that the validators are executed in order in the docs?
Best regards
Blama
Comment