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
0
votes
1 answer

embed tomcat to grails application

I finished an application built with Grails , i want the to embed the tomcat server into my application so all the end user has to do is to run .exe or batch file to run the application without installing tomcat or any web server, is that applicable…
SShehab
  • 1,039
  • 3
  • 17
  • 31
0
votes
1 answer

Grails One-to-many saving child only don't refresh parent child set

Using the classic author/book pattern (grails 2.2.0). class Author { static hasMany = [books: Book] } class Book { static belongsTo = [author: Author] } Why when I create a child instance it dosent update the parent set: Author author =…
Thermech
  • 4,371
  • 2
  • 39
  • 60
0
votes
2 answers

Image not rendered in .doc file

I have a template that have some images one from file system and other are from project images folder. Images in the template that are coming from the images folder of my grails application is shown perfectly in the doc file. I am using below code…
MKB
  • 7,587
  • 9
  • 45
  • 71
0
votes
2 answers

(MacOSx) Earlier version Rails2.3.8, i installed Rails3.2.0 but i still not able to access new version of Rails. Please help me fix it

Parsing documentation for bundler-1.3.2 Installing ri documentation for bundler-1.3.2 Parsing documentation for rails-3.2.12 Installing ri documentation for rails-3.2.12 Done installing documentation for i18n, multi_json, activesupport, builder,…
NarendraSoni
  • 2,210
  • 18
  • 26
0
votes
1 answer

Grails 2.2 'request' keyword at domain

I developed application using grails 2.1.2 then I upgrade to 2.2.0 I have a domain class class Concurrence { Concurrence parent = null Request request Person approver int status = 0 Date processed = null } class Request { …
Wisnu
  • 16
  • 2
0
votes
1 answer

Does Grails fork uses port 8080?

I tried to use the new forked option in buildConfig.groovy: grails.project.fork = [ run: [maxMemory:1024, minMemory:64, debug:false, maxPerm:256] ] Then I started the application: grails run-app And tried to hit the localhost:8080/myapp, but…
user800014
0
votes
1 answer

Setting Calendar property on Domain Object

I came accross an interesting problem in my code today. I am using Grails 2.2.0. Here is the code def user = lookupUserClass().get(params.id) log.info "[update]user.subscriptionExpiryDate1: " +…
Damien
  • 4,081
  • 12
  • 75
  • 126
0
votes
1 answer

Grails Integration Test Controller can't be re-used?

In a grails integration test, I have code that resembles this: def ctrlA = new MyController() ... make some request that returns 'ok' ... assert ctrlA.response.json.status == 'ok' def ctrlB = new MyController() ... make some request that returns…
Travis Webb
  • 14,688
  • 7
  • 55
  • 109
0
votes
1 answer

How to mock the GrailsApplication for unit test in a @component object

I have a Component @Component class SomeComponent { @Autowired GrailsApplication grailsApplication String buildString(String someInfo) { return "${grailsApplication.config.my.string}${someInfo}" } } And a unit…
Thermech
  • 4,371
  • 2
  • 39
  • 60
0
votes
1 answer

Testing criteria in Grails 2.2

One of the reasons we are moving from Grails 1.3.7 to 2.2 is for the ability to unit test our (many) criteria. And the first thing we have run into with criteria testing is this: Property [nightly.id] is not a valid property of class…
Clark Wright
  • 741
  • 1
  • 6
  • 13
-1
votes
1 answer

Socket read IOException not being caught?

In grails, can the socket read failed or ioexception be caught? The following error is triggered even though i have wrapped the error part in try catch block. ERROR 2021-03-28 08:34:10,170 [ajp-bio-8109-exec-39783] errors.GrailsExceptionResolver:…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
-1
votes
1 answer

can i use forward instead of redirect for efficiency?

I have read the difference between forward and redirect. http://grails.asia/grails-redirect-vs-forward Sorry for the naive question but it seemed to me that since redirect goes back to browser and browser issues the new request, forward seems more…
kofhearts
  • 3,607
  • 8
  • 46
  • 79
-1
votes
1 answer

Browser always sends the "noSelection" value of the Grails tag library

I have this select input in my gsp: Even if I change to another item in the dropdown,…
Nedo
  • 627
  • 1
  • 10
  • 20
-1
votes
4 answers

Is there a plugin for Excel import for grails 2.2.0?

Is there a plugin for Excel import for grails 2.2.0? I tried to use http://grails.org/plugin/excel-import, but it shows me the following error: ...\services\org\grails\plugins\excelimport\ExcelImportService.groovy: 4: unable to resolve class org.…
Miheretab Alemu
  • 956
  • 2
  • 20
  • 43
-1
votes
1 answer

Grails internationalization for the views

In Grails views, I need to change the language for labels, buttons, etc., depending on the language that the user picked. How can that be achieved?
SShehab
  • 1,039
  • 3
  • 17
  • 31
1 2 3
9
10