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

grails findAll findAllWhere inconsistencies

Given a Grails domain class Person { String name int age } I can execute that query Person.findAll { age >= 25 } But when I execute this query it doesn't do any filtering def query = { age >= 25 } Person.findAll query I tried cloning,…
Pascal DeMilly
  • 681
  • 1
  • 6
  • 16
0
votes
0 answers

how to implement import and export to xml file in grails application

I have two grails application one run in sql server 2008 grails version 1.2 and another application run in postgresql grails verison 2.3.8. Now i want to import some data from old application to new ato pplication via application.I mean when user is…
0
votes
1 answer

Grails 2.3.8 with Tomcat 6

Is it possible to run grails 2.3.8 app on Tomcat 6? I am trying ot deploy my app on appfrog and I am getting errors related to asynservlet. So far I have tried changing grails.servlet.version = "2.5"in buildconfig.groovy which still ended up in…
Sap
  • 5,197
  • 8
  • 59
  • 101
0
votes
0 answers

Grails DataSource db2 issue : connection closed

In my grails application (Grails 2.3.8), apart from grails default GANT, I am using Gradle 1.7 as building tool. In this app, I have used two databases, which are connected with separate drivers. One is Oracle and other one is IBM DB2. While…
JiniKJohny
  • 1,172
  • 13
  • 29
0
votes
2 answers

Database error after upgrading Grails from 2.3 to 2.4 version

My grails application uses h2 embedded database in production and recently I decided to upgrade it from grails 2.3 to 2.4. It went fine while in development mode, but after deploy to tomcat I mentioned that some things are broken, e.g there are…
Artem Zhirkov
  • 157
  • 12
0
votes
2 answers

Wiring Custom HandlerInterceptor for Urls in Plugin?

I'm wanting to convert my filters to a handlerInterceptor in my plugin but am not quite sure how to go about it. It looks like I am supposed to use 'doWithSpring' and map a handler interceptor but I'm not seeing where I map the url's. To save some…
Orubel
  • 316
  • 4
  • 16
0
votes
3 answers

Error in running or configuring grails application with asynchrounous mail plugin throws exceptions

i want to integrated grails asynchronous-mail:1.0 plugin to my app for that i have added following to my build config compile ":asynchronous-mail:1.0" after that as i tried to run-app which fails by following exceptions | Error 2014-06-26…
Madan Sen
  • 143
  • 1
  • 1
  • 7
0
votes
1 answer

optimistic locking issue - rejectValue not working, bad domain being saved anyway

I've seen that others have had this problem, but I have yet to find a solution that works in my case. In my update method of my domain controller, I am trying to implement optimistic locking by checking version and using rejectValue(); however, I…
Neal
  • 1
0
votes
0 answers

How do I change the order of jar files in the build classpath?

I am using Grails 2.3.x and have an external jar file. I need to change the order of some of the jar files because of dependencies in the build path. I use Eclipse but I do not use Maven. How do I change the order of jar files in the build…
Michael
  • 32,527
  • 49
  • 210
  • 370
0
votes
1 answer

In Grails spock test, how do I mock a custom taglib, called inside a custom taglib?

Okay, I have a custom taglib inside a custom taglib like so: def preference = { attrs, body -> def sliderTaglib = grailsApplication.mainContext.getBean('com.myCustom.sliderTagLib') sliderTaglib.slider.call(attrs, body) } Since I…
0
votes
2 answers

Mapping CHAR oracle type to Boolean in Gorm

I've a Char field in the oracle database. The possible values are "S" and "N" How can I map the values to a boolean field defined in a Grails Domain Object? The "S" value is true, and the "N" value is false. Thank you!
Imaky
  • 1,227
  • 1
  • 16
  • 36
0
votes
1 answer

grails ajax call row-was-updated-or-deleted-by-another-transaction-or-unsaved-value-mapping-was

I am using Grails 2.3.5 and I have a controller which contains a ajaxDelete method. This method receives the name as a String of the entity i want to delete. I am using a service to delete the entity which I call from within my controller. The…
0
votes
3 answers

Grails generating error while altering a table

I am trying to move an already existing PHP application into grails. I have created the domains based on the existing database and the code worked perfectly. The issue arises when I need to add an additional boolean field in my domain. I am getting…
0
votes
1 answer

How do I access My GRails Views pages in Browser

In GRails My views page locations are in C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\myapp\WEB-INF\grails-app\views\index.gsp I used tomcat 7.0 server I deployed my application as .war extension in webapps When I try to access my…
user3301669
0
votes
0 answers

Grails data binding does not work OOTB for a date type with BindingFormat

I have a date attribute deactivation in my domain class called Service: import org.grails.databinding.BindingFormat class Service // ... @BindingFormat('dd-MM-yyyy') Date deactivation I'm using jquery UI datepicker to grab a date from…
kars7e
  • 786
  • 1
  • 6
  • 19