-
Sep 5th, 2008, 01:26 PM
#1
Another validator question
No one on my project can answer this one and I've had no success on google.
The validation.xml has stuff like this. But, I cannot figure out how to tell spring which message key to use. I just get messages like "expression" or "not.blank". The correct field is highlighted, but I need multi-lingual support.
<validation>
<class name="com.MyClass" >
<property name="amount">
<not-null/>
<expression condition="amount>0" key="error.invalid.amount"/>
</property>
<property name="reason">
<not-blank/>
</property>
</class>
</validation>
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