Questions tagged [grails-2.4]

This is the release of version 2.4 of Grails, a dynamic web application framework built on Java and Groovy, leveraging best of breed APIs including Spring, Hibernate and SiteMesh.

Grails is a dynamic web application framework built on Java and Groovy, leveraging best of breed APIs including Spring, Hibernate and SiteMesh.

Se also:

116 questions
0
votes
1 answer

Grails 2.4.2 - package-plugin --binary - rename the generated JAR

I have a custom plugin which I want to package as a binary JAR. For doing so, I am executing a command as shown below: grails package-plugin --binary It's successfully generating the JAR file with the name of the…
MSR
  • 173
  • 3
  • 16
0
votes
1 answer

Grails 2.4.2 - ERROR context.ContextLoader - Context initialization failed

I have a Grails 2.4.2 application that runs fine in one environment. Now, we need to set it up in another environment wherein we have some restrictions related to accessing the Maven Repositories. So, I had to make some changes in BuildConfig.groovy…
MSR
  • 173
  • 3
  • 16
0
votes
0 answers

Grails ignore redirect and does not work

I use Grails 4.5. Redirects does not work at all. Here is simple example. I'm trying to redirect: @Secured(['permitAll']) class HomeController { def index() { println("index") render "index" } def one() { …
Aleksey Kozel
  • 319
  • 1
  • 9
  • 16
0
votes
1 answer

Grails 2.4.4 Dynamic One-to-Many Forms

I've met an already known old topic that oddly enough is badly documented (if it is even documented). I've been trying to create a dynamic table for a form with a one-to-many relationship in Grails 2.4.4, and for that I had to base myself on a…
0
votes
1 answer

RestfulController not binding nested JSON in POST

I'm building an REST API in Grails 2.4.4 and relying on RestfulController to handle basic CRUD type functionality. The front end is being built in AngularJS 1.3 and for the most part Angular's $resource and Grails RestfulController work perfectly…
earthtrip
  • 498
  • 5
  • 18
0
votes
0 answers

Grails: generate-controller * is working but create-controller * is not working

I need the scaffold functionality. For that instead of doing create-controller and manually adding the def scaffold = true to each controller, I installed templates and added def scaffold = true inside src/templates/artifacts/Controller.groovy…
Bhuwan Gautam
  • 1,229
  • 1
  • 11
  • 24
0
votes
0 answers

Grails2.4.3: export to pdf/excel using JQGrid

Currently I'm working on Grails2.4.3 and not able to find a workaround that how I could export my JQGrid data which is in grails(.gsp) into excel/pdf and in other formats.
0
votes
3 answers

Domain List fields in Grails 2.4.4

I'm upgrading a 2.3 app to 2.4.4 and I have several domains that use List fields similar to the following and I'm receiving an error as described here. class Game { List score static hasMany = [ score: Integer ] } I'm assuming use of the above…
SeattleStephens
  • 587
  • 8
  • 20
0
votes
0 answers

Grails 2.4 upgrade duplicate filter name AssetPipelineFilter

I'm upgrading an application from Grails 2.3.3 to 2.4.4 and I've worked through the required changes. The grails compile command runs clean but I'm stuck on a couple of errors during run-app. [ERROR] org.apache.tomcat.util.digester.Digester [End…
SeattleStephens
  • 587
  • 8
  • 20
0
votes
1 answer

Unable to download grails datastore gorm 3.1.3 version

I'm using grails 2.4.4. When I'm upgrading mongodb plugin from 3.0.1 to latest 3.0.2, its unable to find and install one jar. Its throwing: | Error Resolve error obtaining dependencies: Failed to read artifact descriptor for…
Shashank Agrawal
  • 25,161
  • 11
  • 89
  • 121
0
votes
2 answers

Grails 2.4 spring security & Asset pipeline

This is what request map table contains: '/', '/index', '/index.gsp', '/**/favicon.ico', '/assets/**', '/**/js/**', '/**/css/**', '/**/images/**', '/login', '/login.*', '/login/*', '/logout', '/logout.*', '/logout/*'] But no static resources…
CSR
  • 770
  • 1
  • 14
  • 30
0
votes
1 answer

Grails Doc Engine: What is the syntax for insertions?

I am trying to use insertions in my documentation using Grails 2.4.4. According to the Textile syntax this should be +Text with insertion+ The output of the Grails Documentation Engine is +Text with insertion+. Can anyone tell me whats the syntax…
saw303
  • 8,051
  • 7
  • 50
  • 90
0
votes
1 answer

JQuery not working when referred from external file in Grails

I have to dynamically load a set of values based on value I chose in another drop down. In a controller I have the following code, def ajaxGetCities(params){ println params.id def userCustPlantDetails =…
Vinodh Thiagarajan
  • 758
  • 3
  • 9
  • 19
0
votes
0 answers

Grails 2.4.2 Ajax not working for OnChange

I have to dynamically load a set of values based on the value i chose in another drop down. In Controller I have the following code, def ajaxGetCities(params){ println params.id def userCustPlantDetails =…
Vinodh Thiagarajan
  • 758
  • 3
  • 9
  • 19
0
votes
1 answer

Grails validate fields with default values

We have a class like this in a Grails 2.4.3 application (migrated from 2.3.8): @Validateable class Foo { Integer noDefault; Integer withDefault = 1; static constraints = { noDefault(nullable:false) …
Bámer Balázs
  • 169
  • 1
  • 9