On 10/5/06, a k <[EMAIL PROTECTED]> wrote:
Hi,
I was looking at the source for Token and I saw this comment in there:
// WARNING - for this test to be successful, the token component
must
// be the last input component child of the parent form to be
// processed
I understand why the control needs to be validated after all the other
controls are validated but I am not sure where you specify to validate
this
control at the end. Can we specify the order and if so where?
At any given level of the component tree, validations occur in the order
that the parent component's getChildren() method returns them. In turn,
that is based on the order they are specified in the source code. Thus, for
the purposes of making sure the token component is validated last, simply
make it the last component (or at least the last input component) inside the
containing form component.
Thanks in advance!
Craig