Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Color {
- String name
- String shade
- static constraints{
- name nullable: true, blank: true
- shade nullable: true, blank: true
- }
- }
- class MyController {
- def action1() {
- //here I want only name field to be required
- }
- def action2() {
- //here I want only shade field to be required
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement