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
0
votes
1 answer

why is my grails integration testing of my web api failing?

I am developing an app that appends all the values of the form to a FormData() object e.g. "msgBody" and sends it to the grails server-side where it is consumed by jax-rs api. I have used something like: GrailsWebRequest request =…
rkshakya99
  • 439
  • 1
  • 5
  • 8
0
votes
2 answers

log4j logging configuration for two locations in Grails 2.3.8

I'd like to log some information from my BootStrap.groovy file to the console and a logfile. The output reports some configuration information and marks the transition from configuration to the execution phase of the application. The problem I have…
Ken Tanaka
  • 35
  • 1
  • 6
0
votes
0 answers

Not able to use grails database session plugin with mongodb

We are using grails 2.3.5 app with mongodb (no hibernate installed). I had forked & modified grails database session plugin with HQL queries to use simple queries so as to support mongodb. Then when I'm trying to login via ajax, it fails. By fail, I…
Shashank Agrawal
  • 25,161
  • 11
  • 89
  • 121
0
votes
1 answer

Spring UI RegisterController - No such property

I am using grails 2.3.4 with ":spring-security-ui:1.0-RC1" and ':spring-security-core:2.0-RC2' plugin. I have configured both plugins in the Config.groovy like that: grails.plugin.springsecurity.userLookup.userDomainClassName =…
Carol.Kar
  • 4,581
  • 36
  • 131
  • 264
0
votes
1 answer

Difference in result of criteria in mongodb & hibernate

We're using mongodb in our grails 2.3.5 app without hibernate. When using projection in criteria with minimum two fields the result returned is a different as returned in hibernate criteria. For example: List usersList = User.withCriteria { …
Shashank Agrawal
  • 25,161
  • 11
  • 89
  • 121
0
votes
1 answer

Using result transformer in mongodb criteria

We're using MongoDB in our Grails 2.3.5 app without hibernate. Is there any way to use resultTransformer to convert property projection as Map like in hibernate. For example: User.withCriteria { …
Shashank Agrawal
  • 25,161
  • 11
  • 89
  • 121
0
votes
1 answer

How to override Grails' default (binding) conversion of parameter values with commas to String array?

I'm using Grails 2.3.7 and have a controller method which binds the request to a command class. One of the fields in the command class is a String array, as it expects multiple params with the same name to be specified - e.g.…
nickdos
  • 8,348
  • 5
  • 30
  • 47
0
votes
4 answers

Grails org.slf4j.spi.LocationAwareLogger.log not found

I'm using Grails 2.3.8 I've created a default app using grails create-app testapp When I run: grails runApp I get the following issue: | Configuring classpath | Error Error executing script RunApp:…
Greg Pagendam-Turner
  • 2,356
  • 5
  • 32
  • 49
0
votes
2 answers

Spring UI - Overriding RegisterController password settings

I am using grails 2.3.4 with ':spring-security-core:2.0-RC2' and ":spring-security-ui:1.0-RC1". I have my RegisterController ,which looks like that: import grails.plugin.springsecurity.annotation.Secured; @Secured(['permitAll']) class…
Carol.Kar
  • 4,581
  • 36
  • 131
  • 264
0
votes
2 answers

Grails list is replaced by index, so what is the default?

I created a new grails application using grails 2.3.7 and I removed the index action from the controller. My controller has static scaffold = true So now when I try to access applicationname/controller/index I get the list of objects which was shown…
Nikhil
  • 1,166
  • 2
  • 17
  • 35
0
votes
0 answers

Resources plugin with cached-resources

Grails 2.3.7 and the cached resources plugin, at least with lesscss resources are not working properly. The cached plugin returns an erro which is the same error as described in this thread:…
Samson
  • 107
  • 1
  • 6
0
votes
2 answers

grails fixtures refresh()ing error with neo4j

I am trying to load some data via Bootstrap.groovy in to a neo4j db using neo4j plugin. I am using grails 2.3.8, neo4j 2.0.0-M01 & fixtures 1.2.7 The data is loaded successfully but I am getting the following error Error | 2014-05-12 03:39:25,442…
whizvish80
  • 21
  • 1
  • 3
0
votes
3 answers

grails -reloading run-app fails to run a Grails up throwing the following error

I'm using Grails 2.3.0 on Java 1.6.0_30 2014-05-12 15:21:49,378 [localhost-startStop-1] ERROR StackTrace - Full Stack Trace: java.lang.NullPointerException at…
Alexander Suraphel
  • 10,103
  • 10
  • 55
  • 90
0
votes
1 answer

Why can't I return global message keys within custom field validators?

I want to add a custom validator to a field in order to enforce a conditional non-null constraint. Since this requirement is shared across multiple objects, I want to reuse existing global (meaning not object- or field-specific) message keys. In…
jstricker
  • 2,132
  • 1
  • 30
  • 44
0
votes
1 answer

Passing the model to a Javascript function through the onSuccess of a g:formRemote

I want to call a JS function either by the "onload()" function after a template has been rendered, or through the "onSuccess()" callback in the g:formRemote tag. Inside my main GSP I have the following. This code makes a callback to a controller and…
richari1987
  • 360
  • 2
  • 19