Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. class Color {
  2.  
  3. String name
  4. String shade
  5.  
  6. static constraints{
  7. name nullable: true, blank: true
  8. shade nullable: true, blank: true
  9. }
  10. }
  11.  
  12. class MyController {
  13.  
  14. def action1() {
  15. //here I want only name field to be required
  16. }
  17.  
  18. def action2() {
  19. //here I want only shade field to be required
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement