On Thursday, September 5, 2002, 5:11:40 PM, Devin wrote:

RDND> are you doing your validations in JavaScript (<html:javascript
RDND> formName=myForm />) or are you doing it on the server with Java
RDND> (myForm::validate())?

      I'm using DynaValidatorForm and the validation that should take
      place after I set up validation.xml and use the
      validator-rules.xml. It only seems to return the "required"
      errors first, then it will go through and check again upon the
      next submit for any other errors. Maybe I have things set up
      wrong, but that's how it's behaving for me. For example if I
      have:

      <field property="city" depends="required">
             <arg0 key="city.displayname"/>
      </field>

      and also have:

      <field property="stateExemptions" depends="integer">
             <arg0 key="stateExemptions.displayname"/>
      </field>

      and I submit my form with the city field left blank and the
      state exemptions field with "5yt6", it will return the error
      about City is required (and not also the one about
      stateExemptions being wrong). However, if I provide a city and a
      messed up stateExemptions field then it returns fine with the
      error about state Exemptions needs to be a number.

      Any ideas what I have screwed up or is this how the server side
      validation works?

      thanks

-- 

Rick
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to