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

How to list all older versions of Grails plugins?

The Grails Plugins site only seems to list the latest versions of all the Grails plugins. But what if I wanted to see a list of other available (older) versions for each plugin? Is there a Grails SDK command/target I can issue to see old plugins? I…
DirtyMikeAndTheBoys
  • 1,077
  • 3
  • 15
  • 29
6
votes
2 answers

Search records bases on latest record in a hasmany relationship

I have two domains class DomainA { String name Date dateCreated Date lastUpdated static transients = ['email'] static hasMany = [domainBs: DomainB] public String getEmail() { …
MKB
  • 7,587
  • 9
  • 45
  • 71
6
votes
3 answers

GVM/Grails shell script bug?

I'm on Ubuntu (14.04) and just installed the latest version of GVM (1.3.13). I then used it to install Grails (2.3.7), Groovy (2.2.2) and Gradle (1.11). Groovy and Gradle seem to have installed perfectly fine (I can execute their SDK commands, such…
AdjustingForInflation
  • 1,571
  • 2
  • 26
  • 50
6
votes
2 answers

Grails: query or criteria against a string/value pairs map property

Grails gives the possibility of creating simple string/value map properties section "Maps of Objects", first paragraph. I was wondering, is there a way to later query the domain class (using Gorm dynamic finders, criterias or HQL) using the map…
Deigote
  • 1,721
  • 14
  • 15
6
votes
1 answer

Can ServletFileUpload.parseRequest() only be called once per request?

I'm working a custom SpringSecurityFilter for my Grails application and I'm trying to use the commons upload library to process the request. I'm able to process the request in the filter but once it gets to my controller, none of the values are…
ahanson
  • 2,108
  • 3
  • 23
  • 38
6
votes
2 answers

Grails 2.3.x: get the value of URL parameters

Given the URL http://localhost:9000/Estrategia/book/index?format=excel&extension=xls I want to get the format value (in this case is excel) In the controller: `println params.format Grails docs reference But params.format is always null, any…
Alberici
  • 357
  • 2
  • 19
6
votes
1 answer

Why is Netbeans not recognising maven dependency imports in my Grails app?

I've added a maven repo to my Grails BuildConfig and a couple of compile dependencies. Unfortunately, Netbeans isn't recognising the import statements. It all compiles and works fine, just intellisense and the red underlines are spoiling my fun.
sparkyspider
  • 13,195
  • 10
  • 89
  • 133
6
votes
2 answers

Dependency injection in Grails integration tests

I'm testing a service of my application thats depends of another services in runtime. When testing, the dependency inject seems doesn't works. Does dependency injection works in Grails artefacts when running integration tests?
Lucas
  • 3,059
  • 5
  • 33
  • 48
6
votes
1 answer

nested RESTful resources

I'm using the support for REST introduced by Grails in 2.3. My app includes the following domain classes: @Resource(formats=['json', 'xml']) class Sensor { String name static hasMany = [metrics: Metric] } @Resource(formats=['json',…
Dónal
  • 185,044
  • 174
  • 569
  • 824
6
votes
2 answers

Which plugin I should use for db migration for hibernate4?

I am using grails2.3.7 and hibernate4. However, the default database-migration plugin is not working with hibernate4. Is there any other plugin that can do the same thing but support hibernate4? Thanks.
evanwong
  • 5,054
  • 3
  • 31
  • 44
6
votes
1 answer

How to deploy a grails app with a different context path

Where in the grails files can I define a different context path for a grails app to run on Tomcat ? (For instance, the project is called MyApplication, but I want to reference it as /myapp) Thanks
xain
  • 13,159
  • 17
  • 75
  • 119
6
votes
1 answer

How can I find out where the gvm installed groovy?

I have a mac running OSX 10.9.2. and I just installed the gvm and used that to install Groovy. I want to get a test project set up to use for my ide, but I don't know where to tell my ide to find the Groovy SDK. Typeing "help" into the Groovy shell…
j.jerrod.taylor
  • 1,120
  • 1
  • 13
  • 33
6
votes
1 answer

Grails redirect to include trailing forward slash

I'm using Grails 2.3.6, and trying to redirect a URL to include a trailing forward slash, but to leave the rest of the URL as is. The reason is because I have dynamic content which will have images and attachments. I would like those images and…
mnd
  • 2,709
  • 3
  • 27
  • 48
6
votes
3 answers

Grails Asset-pipeline does not load angular partial templates

Im using angular-ui-bootstrap with Grails 2.3.x asset-pipeline:1.6.1 plugin. One of the components - alert.js is attempting to load /template/alert/alert.html but this resolves to 404. I tried including grails.assets.includes=[*/.html], did not…
vasya10
  • 599
  • 6
  • 19
6
votes
1 answer

Does anyone have any experience using CloudFoundry with Grails?

I am at the point with my Grails app that I want to deploy it up onto Amazon EC2 so I can start showing it to people. I have a little experience using EC2 "manually" to put other projects onto the web, but I was hoping to find something which made…
Simon
  • 78,655
  • 25
  • 88
  • 118