File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Groovy and the fly likes Custom Validators Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Other Languages » Groovy
Reply Bookmark "Custom Validators" Watch "Custom Validators" New topic
Author

Custom Validators

Oscar Hansen
Greenhorn

Joined: Jul 09, 2008
Posts: 10
I am trying to create a custom validator for variable 'amount' in my domain class, such that the new value should be greater than previous by 0.50.

For example, lets say the previous value was 1.0, next time the value should be atleast: [previous value + 0.50] or more.

Thanks in advance for the help
Gregg Bolinger
Sheriff

Joined: Jul 11, 2001
Posts: 15040

What have you gotten so far? Show us where you're stuck and we'll help you the rest of the way.


My Blog | DZone Articles
Oscar Hansen
Greenhorn

Joined: Jul 09, 2008
Posts: 10


We can do something like that or use creteria to get the max from the table. I got the problem resolved.
 
 
subject: Custom Validators
 
Threads others viewed
custom tag attribute items cannot be runtime expression
Random Direction Change of Object
body-content default value question
priority of templates.
Table with a Checkbox column, unabe to persist the change in values
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture