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
Valang Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Valang

    Hi,

    Today implement valang in my exmaple .

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



    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...
    Bunty

  • #2
    Please help on this ....

    Comment


    • #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' }

      Comment

      Working...
      X