-
Oct 6th, 2007, 03:07 PM
#1
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
-
Oct 7th, 2007, 07:21 AM
#2
-
Oct 12th, 2007, 05:40 PM
#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' }
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules