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
2
votes
2 answers

How to place field label on top of field instead of left side in Grails

I am using Grails 2.4.2. I want to use Grails default CSS with a few modifications. Now I need to place the field label on top of the field instead of left side. Here are my form element where I want to show 4 field in a row:
Sumon Bappi
  • 1,937
  • 8
  • 38
  • 82
2
votes
0 answers

grails 2.4.4 issue inverting filters schema

In a new project based on grails 2.4.4 I am using filter schema with invert option. Few controllers and some actions from another controllers are excluded in filters by inverting the rule. Filter will not be applied to Login, ForgotPassword ans…
Swapnil Sawant
  • 620
  • 8
  • 21
2
votes
1 answer

How to update a server side datatable on change a checkbox from outside of datatable

I am using data table with Grails. I have a check box outside the data table and on its event I want to load the table again with the check box value. Here are my attempts below : In my view where the check box is >>
Sumon Bappi
  • 1,937
  • 8
  • 38
  • 82
2
votes
0 answers

Joda-time in grails 2.4.3 with Mysql ERROR hbm2ddl.SchemaExport

I'm trying to run my app. I have a grails project 2.4.3 version and I'm using Hibernate4. In my BuildConfig.groovy file, I have: dependencies { test "org.grails:grails-datastore-test-support:1.0-grails-2.4" compile…
Brinamar
  • 21
  • 3
2
votes
3 answers

Grails - generate-all to proceed without prompting for Overwrite?[y,n,a]

Every-time I tried to build the generate-all command it prompts me to Overwrite?[y,n,a] for input. Is there a way to select 'y' by default. Edit: I am setting up framework for the first time and I am frequently changing the model and generate views…
Bhuwan Gautam
  • 1,229
  • 1
  • 11
  • 24
2
votes
2 answers

Grails 2.4.3 does not work on mac os x

I am using grails installation on mac os x v.10.9.5. I used to have grails 2.4.2 installation and it was working fine. As I tried to install 2.4.3 version (both through gvm and manually, by unpacking archive and setting PATH and GRAILS_HOME…
mp_loki
  • 1,018
  • 1
  • 10
  • 21
2
votes
1 answer

Grails IntegrationSpec IllegalStateException

After upgrading to 2.4.2 from 2.4.0, I am getting an error when I run my integration tests. It shows that the tests passed, however I am getting an IllegalStateException. Failure: | massemailsystem.UserInformationIntegrationSpec …
James Kleeh
  • 12,094
  • 5
  • 34
  • 61
2
votes
1 answer

Grails 2.4 Command objects nullable constraint and dependency injection

we are preparing for Grails 2.4 upgrade. One of the issues we face is that most of the command object unit tests fails because of injected properties, like services, are required to be not null during validation. Is there any suggested way how to…
practical programmer
  • 1,604
  • 10
  • 15
1
vote
1 answer

Grails 2.4.0 unable to resolve Artifactory descriptor to public repositories since June 4 2021

I have a grails 2.4.0 application that uses the tomcat-7.0.70, hibernate4:4.3.5.5 and other plugins. I had these URLs mentioned in my BuildConfig.groovy: mavenRepo "https://mvnrepository.com" mavenRepo "https://repo1.maven.org/maven2" But I keep…
1
vote
0 answers

Cache error in Grails 2.4.. application from 2.2.1 to 2.4.0 and getting below exception

I am trying to use application to upgrade from 2.2.1 to 2.4.0 and now I'm getting the exception below. Could someone please help? at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1110) at…
1
vote
1 answer

Grails: Use regex with filter

I have two URL's addresses which I have filter for everyone of them: all(uri: '/api/first/**') { before = } all(uri: '/api/second/**') { before = } I want to write just one filter for both. So I have tried to write a filter with…
Benjy
  • 49
  • 6
1
vote
0 answers

Grails 2.4.4 : PooledConnection has already been closed

I have been trying to upgrade my project from grails 2.1.2 to grails 2.4.4. This project calls another module(upgraded to java 8) which uses ibatis for database connection. While the module as a standalone works fine, it gives me "Connection Closed"…
Maria
  • 21
  • 6
1
vote
1 answer

Grails 2.4.4 Map of Objects example not being persisted to Mongo DB

I was following Grails 2.4.4 documentation to make a Map of Objects, but my objects were not being persisted to Mongo DB. So, I decided to make a sanity check using the exactly same example provided by the documentation and it also did not…
Pargles
  • 97
  • 2
  • 6
1
vote
2 answers

Grails upgrade 2.4.0 -> 2.5.4 cache plugin issue

I am upgrading a project from grails 2.4.0 to 2.5.4 shortly after I upgraded it from 2.3.7 -> 2.4.0 and I am getting this error. [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: [groovyc] Compile error…
Michael.D
  • 179
  • 1
  • 15
1
vote
0 answers

grails takes long TTFB time in dev and prod for very first call

I am using grails 2.4.4 and glassfish 4.1 and Java 8. For Database Call When i put a very first request to server it is taking long TTFB time (around 19s). After that for each request it takes only(around 800 ms)TTFB. For Static Pages Even for…
Hardik Patel
  • 937
  • 3
  • 14
  • 39