grails
mapping a grails action to a parent controller
I would like to map some actions in a child class to their super class, but I cannot figure it out. Example below...[详细]
2023-04-10 11:09 分类:问答why read-only access is writing to my db, in GORM?
In my app, I have a code like this: // 1 Foo.get(123).example = \"my example\" // as expected, don\'t change value in db[详细]
2023-04-10 10:43 分类:问答Grails - Using JS variable in remoteFunction for controller and action args
I want to call an Ajax function by using remoteFunction. But I\'d like to set controller and action names with JS variables. Like this:[详细]
2023-04-10 07:10 分类:问答How to properly use jquery's tabs() function?
In my Gr开发者_开发问答ails app, I\'ve got a GSP that looks a bit like this: <div id=\"tabs\">[详细]
2023-04-10 06:58 分类:问答Grails - How to return a collection from a belogsTo relationship with a filter
I have a \'User\' and a \'UserOrder\' class in grails. There is a \'belongsTo\' relationship defined on the userOrder class and a hasMany relationship on the \'User\' class, like so:[详细]
2023-04-10 05:44 分类:问答Grails ApplicationHolder replacement
I would like to ask what should I replace ApplicationHolder to get the grailapplication. I have the following grails script to run a method in a grails service.[详细]
2023-04-10 05:36 分类:问答JRebel removes all logging from a Grails project
I\'ve got a project written in Grails. When I run it from a console with grails run-app I\'ve got all my logs printed to the console, just as I want it.[详细]
2023-04-10 05:34 分类:问答Grails projection on arithmetic expression with executeQuery()?
I need to get a sum of all items sold per order per store. I am running a sum() on expression using executeQuery(). It works fine as shown below but I wanted to know if there is a better, groovier way[详细]
2023-04-10 04:25 分类:问答How to resolve class references in an external config file for grails war deployment?
I am using Grails开发者_开发知识库 1.3.7. I build a war file & deploy it in tomcat. I have an external groovy configuration file that I use to set up logging. I added some perf4j logging appenders[详细]
2023-04-10 03:30 分类:问答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 分类:问答