command-objects
groovy, grails: high level questions on extraneous properties and command objects / data binding
Just a few high-level, hopefully very quick questions: 1) If I have a class A with a single field x, is constructing it[详细]
2023-04-11 01:38 分类:问答Grails controller, Command Object explotion
In Grails controller actions, for validations, We use command objects. The problem is the number of CommandObject classes have exploded.[详细]
2023-04-09 19:17 分类:问答Grails - Command object, customized conditional validator
I would like to build a customized validator in my Command object, to make sure the field email address of a form will not be empty if the notifyMe checkbox is selected.[详细]
2023-04-02 18:38 分类:问答Grails 1.3.5 controller test nulls command object
Straight from page 104 of \"The Definitive Guide to Grails (Second Edition)\": void testLoginUserNotFound() {[详细]
2023-01-23 02:02 分类:问答Get ahold of session in command object in Grails
How can I get the session from within a command object? I have tried: import org.springframework.security.context.SecurityContextHolder as SCH[详细]
2022-12-29 13:36 分类:问答Grails: nested command objects
In my grails app I have an outer command object that contains a list of other command objects: public class OuterCommand {[详细]
2022-12-13 19:41 分类:问答Grails: How do you unit test a command object with a service injected into it
I am trying to test a Controller that has a Command object with data binding. The Command Object has a Service injected into it.[详细]
2022-12-11 10:55 分类:问答Grails Plugin: Getting all command object classes
In a plugin, I need to iterate over all domain and command object classes to apply some meta-magic to them. Getting the domain classes isn\'t a problem, however command objects are not that easy to ge[详细]
2022-12-10 07:18 分类:问答