Announcement Announcement Module

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions ( project, this forum has been decommissioned in favour of Spring Extensions one at:

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.

Costin Leau
SpringSource - Spring Training, Consulting, and Support - "From the Source"
See more
See less
Valang Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Valang


    Today implement valang in my exmaple .

    <bean id="personValidator" class="org.springmodules.validation.valang.ValangV alidator">
    <property name="valang">
    { firstName : length(?) < 30 : 'First name too long' : 'first_name_length' : 30}
    { lastName : length(?) < 50 : 'Last name too long' : 'last_name_length' : 50 }

    I want to know the Significance of ? . why it is used.
    How to disable java script message box popup in validation?
    when I am running my example it is poping up a blank message box & also displaying error in from of Fields...I want to disable the popup

    Please help...

  • #2
    Please help on this ....


    • #3
      The question mark references the property. In your example:

      { firstName : length(?) < 30 : 'First name too long' : 'first_name_length' : 30}

      the question mark references firstName.

      I don't know why you're getting a blank alert box. Try removing the reference to the error code and see if that works:

      { firstName : length(?) < 30 : 'First name too long' }