Women in Technology

Hear us Roar



Article:
  Using the Validator Framework with Struts
Subject:   Field Dependent Processing?
Date:   2003-06-26 10:33:48
From:   anonymous2
Response to: Field Dependent Processing?

I'm afraid we'll have to wait for someone to add a "depends" attribute to the "form" tag that can access to every field. Anyway, the idea behind Validation Framework is not to render useless the "validate" method, but to avoid writing always the same rules. Your rule seem to be quite "peculiar" so I imagine you don't have it in 45 places on your site.


Nevertheless, a "form dependent" validation wolud be a nice touch.


Bye


Insac

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Field Dependent Processing?
    2003-06-26 10:38:33  anonymous2 [View]

    Oops...

    There is a documentation about a "validwhen" features that could suit your needs...

    http://jakarta.apache.org/struts/userGuide/dev_validator.html

    I should have RTFDocs :-)

    Bye

    Insac