I don't know if the following change is an issue or it is intended.
Then the expression in line.gsp aways evaluates to true, because the type of the 'progress' param is…
I know Java 11 has not been officially released yet, but has anyone tested Grails 3.x with an early access release of Java 11? Or does anyone know when or if Grails 3.x will support Java 11?
I am getting a communication link failure exception while executing some MySQL queries after some time. I am using the SQL connection object of package groovy.sql. The application works perfectly fine if I browse the application continuously but it…
While building a grails 3.3.9 application, I've encountered a scenario where I need to call its own API on application restart (for a specific purpose). I long as I know we can't make an API calls via boostrap.groovy, So an alternate option I found…
For demo purposes I have set up a fresh grails application with these files:
class HalloController {
def index() {
String heading = request.getAttribute("heading")
render "${heading}"
}
}
class HalloInterceptor {
…
I'm trying to add a Point to a domain object in Grails 3.3.8 (current latest release). Grails 3.3.8 uses Hibernate 5.1.5, which has support for hibernate-spatial.
In build.gradle:
compile group: 'org.hibernate', name: 'hibernate-spatial', version:…
I am unable to integrate Spring Session with Grails-3.3.15 application using JDBC to persist HttpSession in PostgreSQL db. I get BeanCreationException upon startup of the application.
Background:
I referred to official guide here explained for Redis…
In my User.groovy domain class, I have added the field String email which I want to capture on registration. I have these constraints defined:
email email:true, blank: false, maxsize: 255, unique: true
When I register, if I try to reuse an…
After upgrading grails 2.5.2 to 3.3.11, I am getting Method Not Allowed response while hitting POST request. The GET method works fine.
Controller:
package omapi
import grails.rest.RestfulController
import…
I'm trying to deep clone my domain object. It has around 10 one-to-one mapping and further they have more.
I tried the below snippet:
def deepClone() {
def copy = this.class.newInstance()
PersistentEntity entity =…
In the createCriteria using max:50 and offset:0, I have a projection like below
projections {
sum('downloads')
sum('clicks')
groupProperty('site')
groupProperty('link')
groupProperty('device')
}
totalCount returns 939 rows and the result set…
I created a new Grails 3.3.6 application.
Following this document to create documentation for my project: Grails Docs
The above document says to use gradle docs or grails doc with following arguments..
Arguments:
--init - Create a template project…
We have upgraded our project from grails 3.2.x to 3.3.9 then for any inline plugin auto reload of classes i.e services and controller not working although js file changes are instantly reflecting
Have tried exploded=true but it still not…
Background:
In my project, I needed to have two factor authentication (by sending OTP to registered email) which I implemented by extending DaoAuthenticationProvider.
In order to identify reason of why OTP authentication has failed, my custom…
I am trying to implement SOAP services in my app, the best plugin I found is CXF, but I couln't install it, it looks like that I should put some additional repository.
I raised an issue in the source page, but if someone has faced this before, can…