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

how to Upgrade Grails from Grails 2.4.4 to Grails 3.3.6?

I need to upgrade my grails application from 2.4.4 to 3.3.6. is there any smart way to do it or any kind of help if you can share your experience.
0
votes
1 answer

Grail Deep XML Conversion

I have recently upgraded a Grails project to use version 2.4.4 from 1.3.7. After this upgrade I have an issue with XML conversion of the objects. In my code I have used converter as: import grails.converters.XML def converter = policy as XML String…
Prasann
  • 1,263
  • 2
  • 11
  • 18
0
votes
0 answers

Grails Backup email for grails mail plugin

im using grails 2.4.5 and thinking of a way to set a backup email if ever the main email failed to send. im looking for a way to determine if the email was sent successfully but in doesnt include in the documentation…
mendz
  • 463
  • 2
  • 5
  • 16
0
votes
0 answers

CSRF-defense using Tokens

I'm designing a CSRF defense in a Grails 2.4.5 application. I would like to use the Synchronizer Tokens pattern, and here is the design I intend, simplified: With a new session, on the server, generate a long unique csrf token. Store the csrf token…
GLaDOS
  • 683
  • 1
  • 14
  • 29
0
votes
1 answer

How to create a Rails project along with its database in Rails2?

I have the project built using Rails 2.3.18 ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-linux] How to create the new project along with its Database. Like in rails 4 & 5 we do rails new app -d mysql
user8112782
0
votes
1 answer

How to include gems in the project using Rails 2 and Ruby 1.9.3?

I have the project built using Rails 2.3.18 ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-linux] I do not have any Gemfile my project so how include gems in it.
user8112782
0
votes
1 answer

Generated save SQL for an association class mapped by GORM has correct column name in SELECT clause, but incorrect one in WHERE clause

I have a many-to-many relationship that has its own association class to represent the join table, with a composite ID of the associations. The join table is as simple as it gets, with just two columns, each of which are a foreign key to each table…
AForsberg
  • 1,074
  • 2
  • 13
  • 25
0
votes
0 answers

AWS Lex integration with Grails 2.4.4

I am using Grails 2.4.4 with JAVA 7. I am trying to find out a way to integrate Grails with Amazon Lex, so that i can send and receive text to/from aws-lex api. I am not able to find much on aws documentation. Anybody have any idea regarding this or…
Manoj Khare
  • 21
  • 1
  • 4
0
votes
1 answer

Grails inList Constraint get values of inList map in error message

I am using inList constraint to validate list of values. And I am not using directly command/domain class to show error message ex: name inList: ["Joe", "Fred", "Bob"] if name is not from the list error message is shown as Property [{0}] of…
emphywork
  • 448
  • 1
  • 4
  • 15
0
votes
1 answer

how to save radion buttons in grails

My Class: package com class Cafe { String cafeteriasurvey static constraints = { cafeteriasurvey nullable:true } } & form.gsp: <%@ page import="com.Cafe"…
0
votes
2 answers

Manually update autogenerated id by GORM

I'm working with class: class Account{ static mapping = { id generator: "uuid2" } } I try to add instance of account and manually set its id: new Account(id: accountId).save(flush:true) but after flush, id of saved object…
Michal_Szulc
  • 4,097
  • 6
  • 32
  • 59
0
votes
1 answer

Plugin Using Grails

I am using the uploadr plugin for grails 2.4. Following the documentation I did the following BuildConfig.groovy compile "org.grails.plugins:uploadr:1.2.11" Then in my gsp
hat_to_the_back
  • 293
  • 2
  • 15
0
votes
1 answer

Grails 3 domain class index TTL by environment

I've seen a few posts about why it's bad to inject logic into your domain classes, and i haven't actually figured out how to inject 'grailsApplication'. I'm looking to setup Domain Class index TTL values by Grails Environment. I don't want documents…
Kirby
  • 1,980
  • 3
  • 21
  • 33
0
votes
1 answer

Cannot cast object 'jxl.biff.EmptyCell@47821b4b' with class 'jxl.biff.EmptyCell' to class 'jxl.DateCell'

My Domain Model package sample class Person { String lastName String firstName Date dateOfBirth int numberOfChildren static constraints = { } } My Controller package sample /*imported libraries.*/ import jxl.DateCell import…
D.Sanxhez
  • 137
  • 8
0
votes
1 answer

Is it possible to force flush a domain being saved in a service?

On saving a domain object in a service, with a flush: true on the save of the domain, the object isn't getting saved before I have to use the object. Domain domain = new Domain(property: something.toString()).save(failOnError: true, flush:…