Questions tagged [grails]

Grails is an Open Source, full stack, web application framework that uses the Groovy programming language (which is in turn based on the Java virtual machine (JVM) and Java). The framework is oriented around high-productivity application development by following the "coding by convention", and uses common Java technologies such as Hibernate and Spring.

Grails is a coding-by-convention framework that leverages well-established frameworks (, , ) to allow programmers to quickly develop web applications.

It touts features such as a zero-XML configuration and a typical web-application architecture.

Grails applications are mainly written in , a dynamic language with strong interoperability with Java and features similar to other languages , , and

Along with its core, Grails has a plugin architecture and library that can provide developers with common web application features like and dynamic UI tools.

Version History:

Latest stable version

Related tags:

  • - Grails object relational mapping implementation, backed by
  • - Groovy Server Pages, the Grails template mechanism
  • - The programming language Grails uses

Online resources:

29868 questions
6
votes
3 answers

How to make GGTS / STS super fast?

I am using GGTS 3.2 JUNO 4.2.2 with Grails 2.2.1. It occurs to me that the environment is very slow after a while. What can I do to make it faster? Is there a way to use the full potential of the underlying system? What I did was (GGTS.ini):…
Michael
  • 32,527
  • 49
  • 210
  • 370
6
votes
1 answer

Manually add jquery and jquery-ui to grails project

I've been coding in grails now for a couple months. They get added to the page through the main.gsp file with the following: The jquery and jquery-ui plugins have been working fine…
tribunal88
  • 101
  • 2
  • 8
6
votes
5 answers

How to call a Grails service in a view?

Simple question : I have a service class (let's say helpersService) and a method def constructURI(params). How can I call this method from a template view. I have tried the following code without success <% def helpersService = new HelpersService()…
fabien7474
  • 16,300
  • 22
  • 96
  • 124
6
votes
3 answers

Grails: multiple relationships between two domain objects

I am trying to implement two different types of relationships between two domain classes in Grails. Consider the following; I have two domain classes, an Author and Book class with an Author having many Books. class Author{ String name…
dre
  • 1,027
  • 1
  • 11
  • 31
6
votes
2 answers

GORM composition - embedded domain with many-to-one relationship throws org.hibernate.MappingException

I am trying to use an embedded domain with a many-to-one relationship in Grails 2.2.1. Here's a simplified version of what I am trying to do. I'm mapping to existing db tables: create table incident (id bigint generated by default as identity,…
Becca Gaspard
  • 1,165
  • 7
  • 19
6
votes
2 answers

Grails & Spring - in resources.groovy how to setup a list

The question is straight forward, how to create a list of bean in resources.groovy? Something like that doesn't work: beans { listHolder(ListHolder){ items = list(){ item1(Item1), item2(Item2), ... …
Fiftoine
  • 271
  • 5
  • 17
6
votes
4 answers

Grails ehcache plugin - Another unnamed CacheManager already exists in the same VM

I run my Grails application using ehcache for my 2nd level Cache and it works. I installed the ehcache plugin + cache plugin and then it doesn't. I tried almost all solutions from the internet and found no solution I keep getting Another unnamed…
Gil
  • 640
  • 8
  • 14
6
votes
1 answer

Grails hibernate/Searchable stops server to start by giving the exception below

We are using Grails 2.1.1 and Searchable plugin 0.6.4 in our Grails applications and implemented searchable on some domains which are indicated below with all the mappings. class User { ..... static hasMany = [userEducations :…
6
votes
1 answer

Large file download using grails

I am working on a grails application, it has a file sharing feature. It uploads files onto the server and allows user to download the file from server. I used the following code for this : def file = new…
Eddard Stark
  • 3,575
  • 8
  • 35
  • 51
6
votes
2 answers

neverHappen variable in compiled classes

I changed a couple of classes in my Grails project and built a war file. I then compared the .class files from the new war to the ones in the war which was built before my changes (on a different machine, if that matters) and it turns out that many…
zoran119
  • 10,657
  • 12
  • 46
  • 88
6
votes
1 answer

Grails controller test making assertions about model when rendering a template?

Using Grails 2.1.0 It seems that doing this from a controller: render(view: "someView", model: [modelEntry: "hello"]) allows me to do this in a unit test for that controller: controller.method() assert model.modelEntry == "hello" However, if…
Rod
  • 137
  • 6
6
votes
4 answers

Get domain class field names

I would like to get the field names of a class and maybe store it in a list. Can anyone help? Thanks.
noob
  • 300
  • 5
  • 16
6
votes
1 answer

Grails push to Heroku failed - applicationContext.xml doesn't exist

I try to deploy my Grails 2.1.1 application to Heroku. I run git push master heroku and it runs for a while (compiles alright, get dependencies, ec), then it gives me this message: |Building WAR file ...........................Error | …
marko
  • 3,736
  • 6
  • 29
  • 46
6
votes
2 answers

How do I add Grails to my cloudbees Jenkins installation?

I'm trying to follow the instructions here to run my Grails build on the Cloudbees' Jenkins service: http://wiki.cloudbees.com/bin/view/DEV/Build+and+Deploy+Grails+application However, when I try to select a Grails installation for my build job from…
Ricardo Gladwell
  • 3,770
  • 4
  • 38
  • 59
6
votes
2 answers

grails service with different scopes for persistence

I have one domain, in that domain more than 25 members are there. This members value will come from one form. But it feels bad to fill those too much fields. So I thought dividing input form into different stages. I've made a class called…
sanghavi7
  • 758
  • 1
  • 15
  • 38
1 2 3
99
100