Questions tagged [grails-2.4]

This is the release of version 2.4 of Grails, a dynamic web application framework built on Java and Groovy, leveraging best of breed APIs including Spring, Hibernate and SiteMesh.

Grails is a dynamic web application framework built on Java and Groovy, leveraging best of breed APIs including Spring, Hibernate and SiteMesh.

Se also:

116 questions
0
votes
1 answer

Grails Data Binding and Transients

Consider the following class: Class Timesheet { BigDecimal hoursWorked Boolean reviewedByCustomer Boolean approvedByCustomer ... } The timesheet can have three states in terms of customer review: TO_BE_CHECKED (reviewedByCustomer…
nst1nctz
  • 333
  • 3
  • 23
0
votes
1 answer

Is Spock plugin required for grails-2.4.4

I am using grails-2.4.4 version of grails. I want know,Is spock plugin required for grails-2.4.4.? I want to perform integration testing.
Atul Jain
  • 1,035
  • 2
  • 16
  • 24
0
votes
1 answer

How to inject springSecurityService Into Grails Domain Class for Controller Unit Testing in Grails 2.4.2

How do i inject springSecurityService in Grails Domain class While unit testing Controller,Below is the Sample Code, i keep getting error can not get encodePassword on null Object and similarly for getPrincipal(); //Controller class class…
0
votes
1 answer

Can grails controller render text values twice to a client

In my application, the browser http requests are queued. On http request to server, the client should be notified by server that the request is been accepted (say with http status as 202 or just a message "In Progress"), so that client side queue…
0
votes
1 answer

Insert into Database Groovy Grails

I'm a new developer for groovy grails and I have a table named user under the database test. I succeed to login to that database by using grails but I couldn't succeed to register the new user. Here is my register.gsp
Burak
  • 133
  • 2
  • 12
0
votes
1 answer

How to solve Itext issue while adding jasper:1.11.0 plugin for grails 2.4.4 version

I am trying to migrate a grails project from grails version 1.3.7 to 2.4.4.In that I need to add Jasper Plugin jasper:1.11.0.I already used Jasper:1.5.3 plugin for version 1.3.7,its working fine. The problem is while adding jasper:1.11.0 plugin for…
Nojesh
  • 1
  • 2
0
votes
1 answer

Grails spring switch user

I have problem with j_spring_security_switch_user, as I only can switch between users with the role ROLE_SWITCH_USER. Can I change it so it can switch to users with the ROLE_USER from a user with the role ROLE_SWITCH_USER?
Dasma
  • 1,023
  • 13
  • 34
0
votes
1 answer

How to copy Grails 2 plugin resources to the Grails app?

I'm writing a custom Grails 2 plugin to modularize my Grails applications. In the plugin I'm planning to define basic GSPs that can be overridden by the application that will utilize the plugin. I'm thinking of writing a Grails command script that…
Psycho Punch
  • 6,418
  • 9
  • 53
  • 86
0
votes
0 answers

Issue with using Quartz2 plugin in Grails 2.4.5

Quarrtz2 Plugin I Used : compile ":quartz2:2.1.6.2" Message: Error creating bean with name 'grailsApplication' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is …
hemantgp
  • 352
  • 3
  • 7
0
votes
1 answer

How to pass reference to an object as JSON in a POST in grails

I have 2 classes Person and and Designation. I am using @Resource annotation to make them restful import grails.rest.Resource @Resource(formats=['json', 'xml']) class Person { …
user4489210
0
votes
2 answers

How to pass object as JSON to a POST or PUT request in grails

I am using restful service in grails. I have 2 classes Person import grails.rest.Resource @Resource(formats=['json', 'xml']) class Person { String name Address address static constraints = { } } and Address as…
user4489210
0
votes
1 answer

How to access taglib in scripts meant for run-script?

How to access ApplicationTagLib in a script meant for the grails command line run-script? In case someone wonders what is the use case This problem came up when I was trying to create a script for generating a json file (containing links to…
Aseem Bansal
  • 6,722
  • 13
  • 46
  • 84
0
votes
0 answers

grails template is not searched in views main directory

I have a template which I render with: in my main-layout. (layout/main.gsp). That's a template, which some of my views need and some views don't. For the views, which don't need that template, I put an empty file…
susi
  • 493
  • 4
  • 13
0
votes
1 answer

Odd behavior with default index action when unit testing a RestfulController in grails

Using grails 2.4.4 (and 2.4.5) I created the following tiny application. grails create-app example cd example grails create-domain-class Book Then edited Book.groovy to look like package example class Book { String title; static constraints…
burns
  • 1,091
  • 13
  • 15
0
votes
1 answer

Upgrade to Grails 2.4: ClassNotFoundException: org.springframework.web.filter.GenericFilterBean

I am trying to upgrade an application to Grails 2.4.5 from 2.3.11. I do not seem to be able to get this to work. I use the Spring Security Core and Spring Security REST plugin. Trying to run the app, this exception is thrown indicating Spring…
Dave B.
  • 3
  • 1
  • 4