Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
Commons Validator page Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Commons Validator page

    from the docs, chapter 17.1 Commons Validator and 17.1.5, Partial Bean Validation Support, i learned that spring modules validation can handle partial bean validation.

    my question is how do i specify a field that should be validated in multiple pages?
    for example
    i have

    id, name, address

    in registration all is required
    in update profile only name and address is required

    so page="0" would be [id, name, address]

    and
    page="1" would be [name, address]

  • #2
    Any resolution to this question? Is it possible to configure an attribute for multiple pages?

    Comment


    • #3
      yeah. using the page="x" attribute

      Comment


      • #4
        To clarify, what is the configuration syntax?

        the sample validation.xml shows:

        <form name="personDataWizard">
        <field property="firstName" depends="required" page="0">
        <arg0 key="person.first.name"/>
        </field>
        <field property="lastName" depends="required" page="0">
        <arg0 key="person.last.name"/>
        </field>
        </form>

        How would I configure page "1" to firstName, if it is required for both page 0 and page 1.

        Thanks.

        Comment

        Working...
        X