josevalviana
New member
I have these two classes:
class Category {
String description
Boolean active
static constraints = {
description()
active()
}
}
class Product {
String description
Boolean active
Category category
static constraints = {
description()
category(**** I want the filter here *****)
active()
}
}
Is there any way to filter the dropdown list of categories in the product class directly in the domain class, so only active categories (true) will be displayed. Or should it be done in list.gsp???
class Category {
String description
Boolean active
static constraints = {
description()
active()
}
}
class Product {
String description
Boolean active
Category category
static constraints = {
description()
category(**** I want the filter here *****)
active()
}
}
Is there any way to filter the dropdown list of categories in the product class directly in the domain class, so only active categories (true) will be displayed. Or should it be done in list.gsp???