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
issue in displaying correct error messages using commons validator Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • issue in displaying correct error messages using commons validator

    I'm using a WizardFormController and using a ConfigurablePageBeanValidator to validate form fields accross multiple pages.

    Here are some snippets of text from a few relevant files:

    validator.xml

    ......
    <formset>
    <form name="customer">
    <field property="firstName" depends="required" page="0">
    <arg0 key="required.firstName" />
    </field>
    .......


    errors.properties

    required.firstName=First Name field is mandatory (make it up if you don't have one)

    myapp-servlet.xml

    .......
    <bean id="messageSource" class="org.springframework.context.support.Resourc eBundleMessageSource">
    <property name="basenames" >
    <list>
    <value>messages</value>
    <value>errors</value>
    </list>
    .......



    The problem:

    The validation seems to be working fine, but the error messages displayed next to the html fields are not from the error.properties but instead "errors.required" is displayed on the html page.

    This completely beats me. What could be going wrong?

    Appreciate any help on this.

    Regards,
    Debarshi
Working...
X