Results 1 to 3 of 3

Thread: Valang

  1. #1

    Default 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. #2

    Default

    Please help on this ....

  3. #3

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •