Questions tagged [grails-3.3]

Use this tag for version 3.3 only, use grails tag for general question about grails Web application framework

109 questions
0
votes
1 answer

Grails: add custom javaScript to field rendered in f:all

I have some fields that are being rendered using the tag. Three of those fields need an "onClick" attribute so I can turn on/off some manadatory settings on other fields upon clicking. I have added the correct javascript function and tried…
Fish-Guts
  • 334
  • 3
  • 15
0
votes
1 answer

add a field in using fields Grails plugin

I'm using Grails 3.3.11 for developing an application, as the views were automatically generated using fields plugin, I was wondering how to add to the view a field not in the domain class , for example in the user registration view I want to add…
SShehab
  • 1,039
  • 3
  • 17
  • 31
0
votes
2 answers

Grails: URL mapping with .gsp extension/format

I have a url request like www.xyz.com/customer/list.gsp When I try to map the url to remove .gsp: "/customer/list.gsp"(controller: "customer") { action = "list" } grails application won't recognize the url and is throwing 404 error. Am…
vinay
  • 21
  • 4
0
votes
1 answer

How to override a DomainClass getter in Grails 3

I'm upgrading a Grails 2 app to 3.3.10 and we have alot of custom getters that aren't being called. Many have fallback logic for nullable values. Color getFavColor(){ if(!favColor){ return "black" } return favColor } Edit:…
Dano
  • 15
  • 6
0
votes
2 answers

Grails 3 PluginDescriptor configuration

I am converting existing Grails 2.5.6 project to Grails 3.3.11. With my existing application (Grails 2.5.6), the plugin descriptor is having code like below: def doWithApplicationContext = { applicationContext -> def config =…
Parth Bhagat
  • 509
  • 1
  • 11
  • 24
0
votes
2 answers

How to show customised error page for forbidden url access in grails 3.3.9

My grails 3.3.9 application has different modules implemented with different ROLE based access using spring security. AdminController accessed via ROLE_ADMIN. If a non-admin user logged in and try to access Admin URL then grails show [Image]Grails…
0
votes
2 answers

How do I trigger entity onLoad() using hibernate Envers?

I am adding Hibernate Envers to my Grails 3 project. I noticed that for one of my entities, which has an onLoad() event, the onLoad() event is never invoked for Envers revision entities. How can I make sure this code is always invoked, even for…
RMorrisey
  • 7,637
  • 9
  • 53
  • 71
0
votes
1 answer

Grails domain property nullable - true by default?

Regarding setting a domain class property to be nullable, as described here: https://docs.grails.org/3.3.10/ref/Constraints/nullable.html Is there a way to make "nullable equals true" to be the default for all properties in all my Grails domain…
user542103
  • 255
  • 3
  • 18
0
votes
1 answer

grails generate-controller creating strange interface service

I'm migrating a 2.5.6 app to 3.3.10. When generating controllers, detected that a service was created and used from the controllers auto-generated code. Looking at the service, is just an interface. Looking at the grails generate-controller…
Pablo Pazos
  • 3,080
  • 29
  • 42
0
votes
0 answers

Need to restart Grails after controller changes

I'm developing application using Grails 3.3.10 if I did any change in the controller or service i need to restart Grails to see the effect of that change and this is time consuming , i tried to rebuild the project but still no effect , my IDE is…
SShehab
  • 1,039
  • 3
  • 17
  • 31
0
votes
1 answer

Dropdown list in Grails 3

I'm developing an application using Grails 3.3.10, I'm trying to make a dropdown list but I'm getting it empty I'm putting the values in application.yml file, below is my code. application.yml: profile: accType: ['supplier', 'buyer',…
SShehab
  • 1,039
  • 3
  • 17
  • 31
0
votes
1 answer

Custom validator name in grails 3

I am migrating a big project from grails 2.5.4 to 3.3.10. Everything is going well but I have a mayor problem in my domain objects. I use to write my custom validators this way: class Person { String name static constraints = { name:…
Alejandro Vera
  • 377
  • 2
  • 12
0
votes
1 answer

Grails: service not being injected in controller when running plugin

I'm creating a Grails (3.3.9) plugin to hold shared back-end code for some internal applications. For some reason, when I run the plugin to test it, my service is not being injected into my controller. I've started with the default web-plugin…
D. Walker
  • 105
  • 9
0
votes
1 answer

How can logback be configured to log at INFO level from Bootstrap on Grails 3.x?

I'm migrating an app frm Grails 2.5.6 to Grails 3.3.9 and I'm having trouble making the logs from the Bootstrap.groovy work, I need to do a log.info "xxxx" for stuff that gets created in the init, but can't find one single example online about how…
Pablo Pazos
  • 3,080
  • 29
  • 42
0
votes
1 answer

in a grails 3 app, what is spinner and do I need application.js?

grails 3 comes with bootstrap 3. I want to create my own main.gsp layout based on grails 4, i.e. replace the default main.gsp with something like this:
John Little
  • 10,707
  • 19
  • 86
  • 158