grails
maxSize validation for <g:textarea ... />
when grails creates view, it automatically adds a maxLength attribute to text fields. This is great because users will not be able to input a string which is longer than the contraint. This h开发者_如[详细]
2023-04-12 16:01 分类:问答Grails JQuery Ajax Form Validation
I have a modal dialog where I load a form from a gsp and I am struggling to find the right solution for an ajax based form with JSON validation incl. success message like a flash scope message:[详细]
2023-04-12 15:03 分类:问答Stack overflow in grails caused by obscure def recursion
this is a pretty strange issue. I have a many-to-many relationship between two classes, Subscription & Scenario. Thing is I\'m trying to delete the relation between them when either is deleted us[详细]
2023-04-12 11:53 分类:问答In grails, using gsp how do I build a comma separated list of links from a collection of domain objects?
Basically what I want is: <g:fancyJoin in=\"${myList}\" var=\"item\" separator=\", \"> <g:link controller=\"foo\" action=\"bar\" id=\"${item.id}\">${item.label}</g:link>[详细]
2023-04-12 10:49 分类:问答Grails Date Timestamp
I have mapped a Date field in one of my models. If I store the date everything looks fine in the database but if I read the value I am getting all values -2 hours from the actual date field. The 开发者[详细]
2023-04-12 10:02 分类:问答Grails SSL certificate error
I\'m using the acegi security plugin and I run the app -https. The cert is generated but I get a certificate warning when i visit the web page. I have then download the weak ssl plugin and added weaks[详细]
2023-04-12 07:03 分类:问答How does Grails handle security, and why should I use a plugin?
For 90% of every security-related Grails tutorial, they tell you to store your User objects in a session-scoped variable. That\'s all nice and easy, but I wonder if it\'s too good to be true, especial[详细]
2023-04-12 05:22 分类:问答Grails: Added methods during runtime available in tests?
I am trying to test a controller which, in particular, is using java.io.File and some of the methods/attributes injected by Grails during runtime, like:[详细]
2023-04-12 05:00 分类:问答MarkupBuilder Rendering From String
I\'m using MarkupBuilder to render some HTML from a taglib like so (stripped down for cla开发者_开发问答rity):[详细]
2023-04-12 04:39 分类:问答Grails sort params
I am using ExtJS4 library to show a grid of paged data served by a Grails controller and returned开发者_运维技巧 as JSON.[详细]
2023-04-12 04:37 分类:问答