Xoetrope
HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
XUI 4.0

Enhanced Validation Setup


The basic validator setup has been enhanced to provide the validator with the instance configuration. Up to XUI 4.0 the validator only received the attributes specified in the validations rule file and not those declared in the page file when the instance was declared. XUI 4.0 widens the setup method as follows:

  /**
   * Set the validation parameters
   * @param ruleConfig the validator parameters as declared in the validations rules file
   * @param instanceConfig the validator instance parameters as declared in the page file
   */
  public void setup( XmlElement ruleConfig, XmlElement instanceConfig );


XUI 4.0 also removes the need for a type="custom" attribute when specifying a 'custom' validator. If not type attribute is specified the validation setup automatically looks for the class attribute.

There are no comments on this page. [Add comment]

Page was generated in 0.1986 seconds