Questions tagged [grails-2.3]

Grails is a web application framework that uses Groovy and Java. The framework is oriented around high-productivity application development, and uses common Java technologies such as Hibernate and Spring.

Grails is a coding-by-convention framework that leverages well-established Java frameworks (Spring, Hibernate) to allow programmers to quickly develop web applications. It touts features such as a zero-XML configuration and a typical web-application MVC architecture.

Along with its core, Grails has a plugin architecture and library that can provide developers with common web application features like Security and dynamic UI tools.

Grails 2.3 adds (Not an exhaustive list):

  • Improved Dependency Management
  • Data Binder
  • Binding Request Body To Command Objects
  • Domain Classes As Command Objects
  • Forked Execution
  • Test Runner Daemon
  • Server-Side REST Improvements
  • New Scaffolding 2.0 Plugin
  • URL Mappings May Specify A Redirect
  • Async support
  • Encoding / Escaping Improvements
  • Hibernate 3 and 4 support
  • Controller Exception Handling
  • Namespaced Controllers

More information:

See for more information.

167 questions
2
votes
1 answer

Exception in a Grails 2.3.8 app with facebook oauth2.0

I'm having the followings setup: BuildConfig: plugins { build ":tomcat:7.0.52.1" compile ":hibernate:3.6.10.13" compile ':spring-security-core:2.0-RC2' compile ':spring-security-oauth:2.0.2' compile…
injecteer
  • 20,038
  • 4
  • 45
  • 89
2
votes
3 answers

Apply defaults to command object based on configuration service

How can I apply defaults to a command object in Grails 2.3? Note that I need to retrieve these defaults from a service when the corresponding url param is unspecified. I have the following command object as the argument to my action class…
Jim Meyer
  • 53
  • 5
2
votes
1 answer

Grails plugin.xml - store in version control?

I'm developing a Grails plugin. Should its plugin.xml be kept in version control. Why or why not? Because these are just plugin descriptors, I'm not sure if they should always be maintained alongside the rest of the codebase. However perhaps Grails…
2
votes
1 answer

"grails maven-install" vs "grails install-plugin maven-publisher"

I am using Grails 2.3.6 and have a few questions surrounding these 2 SDK commands. I usually don't like to write "multi-questions" like this, but as you can see, they are so close in concept that I'd rather just put them all here than bog down SO…
AdjustingForInflation
  • 1,571
  • 2
  • 26
  • 50
2
votes
1 answer

Chaining Grails Plugins?

I am trying to build a Grails plugin that will act as a "master plugin" for a suite of other Grails apps. I am wondering if it is possible to somehow chain plugins together transitively? Pretend that Plugin A depends on Plugin B, and that Grails App…
AdjustingForInflation
  • 1,571
  • 2
  • 26
  • 50
2
votes
1 answer

Grails wrong response encoding for scaffold pages

After grails upgrade from 2.2.3 to 2.3.6 I got wrong encoding for scaffold pages For usual pages all is ok: Content-Type:text/html;charset=UTF-8 Same layout template used, but for scaffold page: …
demon101
  • 544
  • 1
  • 11
  • 39
2
votes
1 answer

Why is dependency injection within an integration test failing when developing my grails plugin

When using a generated Integration test (grails create-integration-test package.ServiceName) I am unable to use the injected service in the test - in a grails plugin. It throws a very unhelpful NullPointerException However, the very same process -…
2
votes
0 answers

grails 2.3 spring security without sessions

I am using grails 2.3 and spring security plugin 1.2.7.3 (no issues in upgrading to 2.0 once released, and if that could solve my prob). I am NOT using hibernate plugin. And i want a sessionless authentication on the server side. Need the…
shrw
  • 1,719
  • 5
  • 27
  • 50
1
vote
1 answer

Grails Routing-JMS plugin - Issue while deployment into weblogic

I am using Grails plugin (routing-jms) to enqueue messages into Oracle AQ based queue. It works fine using tomcat but throwing below exception while deploying into Weblogic 10.3 server. Caused by: java.lang.ClassCastException:…
Ahsan Shah
  • 3,931
  • 1
  • 34
  • 48
1
vote
0 answers

Upgrading grails 2 to grails 3: HibernateCriteriaBuilder equivalent

I am upgrading several plugins and one application from grails 2.3.11 to grails 3.1.10 right now. In some places I have encountered import grails.orm.HibernateCriteriaBuilder Which does not exist in Grails 3. Is import…
Piotr Zakrzewski
  • 3,591
  • 6
  • 26
  • 28
1
vote
1 answer

Class.metaclass.static say can not get static on null

Was writing unit test cases and at one point I needed to do some meta programming to test a method as below. void "test method:resolver"(){ setup:"mocked resolver" ContextHolder.getMetaClass().static.getBean = { Resolver…
Adesh Kumar
  • 99
  • 11
1
vote
1 answer

Call Grails 2 r:require module from a taglib

Having a taglib that uses an external js library to show user notification. Since calling this taglib in many views, I'm wondering how to require the library js module directly from the tag, without doing it from each gsp view. Currently I'm using…
lifeisfoo
  • 15,478
  • 6
  • 74
  • 115
1
vote
3 answers

How to get the value from sum() in a Grails criteria

I can't use the + operator with resultado[0] + obj.nopersonas, nopersonas is an Integer. fhinicio(blank:false, validator : { val, obj -> def diff = groovy.time.TimeCategory.minus(obj.fhfinal, val) def total = diff.hours*60 + diff.minutes …
1
vote
0 answers

Generating dynamic forms with grails

Using Grails 2.3.5 and try to make a dynamic form like described in link below: http://omarello.com/2010/08/grails-one-to-many-dynamic-forms/ But when access the create, none phone field are shown. I've copied exactly like the example. I don't know…
Tiago B.
  • 11
  • 3
1
vote
2 answers

Redirect automatically in a view

I'm using Grails 2.3.3. Is there a better way to redirect to another controller/action from a view automatically if specific conditions exist otherwise continue to display the view - rather than doing this in the action itself? What I am trying to…
mikek
  • 169
  • 1
  • 14