Xoetrope
HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Most recent edit on 2008-02-12 17:05:44 by LuanO

Additions:
XUI 4.0

Deletions:
''**XUI 4.0**''



Edited on 2008-02-12 17:05:23 by LuanO

Additions:
''**XUI 4.0**''

Deletions:
XUI 4.0



Oldest known version of this page was edited on 2008-02-12 12:42:22 by LuanO []
Page view:
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.
Page was generated in 0.2707 seconds