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.

learn more… | top users | synonyms (1)

0
votes
0answers
4 views

Grails DetachedCriteria not working for Disjunction like or

I am trying to create a DetachedCriteria query using an or. It workds fine with createCriteria but here the or is being replaced by an and. Any ideas why? Is that a bug. The fact that a and b are ...
0
votes
0answers
6 views

grails.gsp.view.dir works in dev but not when deployed as war

I've been trying to take advantage of the grails.gsp.view.dir which would seem to be the ideal solution when integrating with a cloud-based CRM. And when I used Grails run-app this works fine, but as ...
0
votes
1answer
16 views

Grails chain selects without domains

I'm trying to chain two, possibly three <g:select ...> statements together using Ajax like is shown here Populate dropdown list using ajax In grails but all the examples I find have two big ...
0
votes
0answers
20 views

Grails - Hibernate mapping with self referenced table

I'm upgrade the grails version of my app from 1.3.7 to 2.2.4 and now a spiritual bug is haunting myself. I have a self referenced entity like the small example below: Class Employee { Name name ...
1
vote
2answers
33 views

overwrite gorm methods in Domain using metaclass

I have a Domain class called User. When running test I wanted to redefine the get method of the User class by doing the following User.metaClass.static.get = {Long id -> [username:"joe", id:id]} ...
0
votes
1answer
11 views

Grails: is it possible to exclude a plugin dependency of another plugin?

I have a grails 2.2.2 app, and have decided to use cache-ehcache plugin. The problem is that this plugin depends on the cache plugin with version 1.0.0 and my application has the cache plugin ...
0
votes
0answers
17 views

Grabbing name variable from a richui:autocomplete Element

I am having issues return the element name in a onItemSelect ajax call. When the control is back to the controller the params for the name is undefined. Roughly this is what my element looks like: ...
0
votes
2answers
19 views

how to get grails class name from a string

Here is a stripped down version of my grails domain objects: //this is a lookup table class PetType { String description } class Family { static hasMany = [ petTypePreferred:PetType ] ...
0
votes
1answer
19 views

Grails / Cobertura report - conditional coverage doesn't make sense

What could cause something like this: The line def result shows only 2/6 branches covered, even though it has NO BRANCHES, while the following line, which actually has a conditional, is ok. ...
0
votes
0answers
10 views

GORM transactions in a non-transactional GroovyTestCase integration test

I have an integration test with static transactional = false, and I am trying to use a dynamic/detatched finder in one of the test functions, but I'm not being successful at it. The exception I'm ...
0
votes
1answer
19 views

Render from controller is working fine in development but not in test

I have the following code in my grails app: def list () { def roles = principal.authorities*.authority def page = roles.contains("ROLE_ADMIN")? "allcolors": "usercolors" if (params.sort == ...
0
votes
0answers
10 views

How to install a grails application on servicemix

We are developing a grails application and are trying to install it onto servicemix. Does anyone know what project setup you have to do to achieve this? I have not been able to find much ...
0
votes
0answers
8 views

support.PluginAwareResourceBundleMessageSource Could not resolve any resources for plugin

war file deploy to tomcat fails with a bunch of messages about plugins not found, these seem to be core plugins. It's my first deploy so likely this is a pretty basic question. Am I missing some ...
0
votes
0answers
9 views

Grails & Platform-core - Plugin loosing context and request

Using Grails and Platform-core plugin for the event feature, I got two plugins communicating between them through events. But when a plugin fires a event, I receive it into the other plugin but the ...
1
vote
1answer
21 views

Grails service methods to expose as REST services

I am new to Grails. I have seen how to expose the controller actions/methods as RESTFull services using UrlMapping.groovy file and using GET/POST/PUT/DELETE http methods. Now following is my ...

15 30 50 per page