Questions tagged [grails-2.2]

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 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.

136 questions
1
vote
0 answers

is there a way to turn off form params passing to a controller in grails?

I have this simple two methods in PaymentController def checkout3(){ } def receipt3() { render params return } The checkout3.gsp is a simple form as follows
kofhearts
  • 3,607
  • 8
  • 46
  • 79
1
vote
0 answers

IntelliJ IDEA unused code detection

IntelliJ IDEA can find all the code that is unused, but it wont grey out all of it. I want it to fully analyze and gray out all properties in messages.properties file, but it does not do that. How can I force it to do so? It would be also good if I…
Marko Taht
  • 1,448
  • 1
  • 20
  • 40
1
vote
1 answer

Caching the assetss that include Css and js files in grails application

currently the project i am working on is using cache:1.1.1 plugin with grails 2.2.4. but for some reason its not working and in browser under the network tab i get status 200 instead of 304 every time i reload the page. I have tried different plugin…
1
vote
1 answer

Setting lastUpdated of a Grails domain object in Spock

I have a Grails 2.2.4 project, and I'm trying to write a unit test for a method that queries over lastUpdated, like so: Tile.createCriteria().list { lt('lastUpdated', new Date() - 1) } This method works fine in real life, but fails in my unit…
David Seiler
  • 9,557
  • 2
  • 31
  • 39
1
vote
1 answer

Call Grails 2 r:require module from a taglib

Having a taglib that uses an external js library to show user notification. Since calling this taglib in many views, I'm wondering how to require the library js module directly from the tag, without doing it from each gsp view. Currently I'm using…
lifeisfoo
  • 15,478
  • 6
  • 74
  • 115
1
vote
0 answers

Grails 2.2.4 > Domain in Command Object: Binding fails

I'm trying to use a Domain (Order) with 3 Single-ended Associations (Product, Defect & Solution) in a CommandObject to perform an update, and I'm receiving 3 different behaviours: cmd.order.product receives the new value; cmd.order.defect also…
1
vote
1 answer

Using static method in Grails / GORM findAll closure

I'm upgrading a Grails app from 2.2.4 to 2.5.0, and from Hibernate 3 to Hibernate 4. There is an existing GORM findAll query that passes a java.util.Date property (named start) of the domain object to a call to a static method that returns a copy of…
XDR
  • 4,070
  • 3
  • 30
  • 54
1
vote
0 answers

Using a Grails 2.4.2 plugin as a JAR dependency in a Grails 2.2.0 project

I have a custom plugin built using Grails 2.4.2 that is to be used with multiple Grails projects as a regular JAR dependency. I have successfully exported the plugin as JAR and installed into my local Maven repository and added the corresponding…
1
vote
1 answer

Grails 2.2.4: creating a column default value in MySQL 5.5

I followed the instructions that I found many places online for how, for a Grails 2.2.4 domain object property, to create a default value on its corresponding MySQL 5.5 column. Unfortunately, the columns that are supposed to have a default value do…
XDR
  • 4,070
  • 3
  • 30
  • 54
1
vote
0 answers

Tomcat Work Directory with Grails Application

I have a Grails application (v. 2.2.5) deployed in a production environment. I had some issues with a dashboard page with several graphs loading the data via AJAX. Most of the graphs show up correctly but after a week or so of it being deployed some…
1
vote
1 answer

Is it possible to convert a simple grails application to OSGi bundle that can run in Adobe CQ?

I have a simple Grails 2.2.4 application that simply lists a bunch of items on a page. So I only have one controller and I'm not even using the database. Now, I want to convert this application into an OSGi sling bundle so that I can run it under…
birdy
  • 9,286
  • 24
  • 107
  • 171
1
vote
1 answer

Creating general purpose gant scripts

Is it possible to create gant scripts to automate generalized processes. e.g. Grails provides a default script 'create-app' to create a project using a tomcat container. Now suppose that I want to write my own script that could create projects…
Rammohan
  • 493
  • 6
  • 27
1
vote
1 answer

Gradle plugin not working with Grails 2.2.3

I have just created an sample application with grails-2.2.3. When I am running this application using grails run-app it is working fine as usual but client want to use gradle for build the application. I have install the grails-gradle plugin and…
user9873999
  • 311
  • 3
  • 15
1
vote
1 answer

Binding Boolean value for checkbox in Grails 2.2.4

Currently we are upgrading Grails version from 1.3.3 to 2.2.4. While doing so, we encountered a Boolean binding problem for a check-box value. Here is the code... Domoan: A { : : Boolean check } View: …
shohan
  • 303
  • 3
  • 16
1
vote
5 answers

No javascript provider is configured

Update: I've isolated this error to registering the onchange event in this select. If I remove the onchange, the page renders without error, otherwise I get the No javascript provider error.
SeattleStephens
  • 587
  • 8
  • 20
1 2
3
9 10