Questions tagged as 'grails'

1
answer

Criteria do grails

Somebody please tell me what this $ {result [0] [0]} means, why did they put two pair of brackets? def criteria = Person.createCriteria() def result = criteria.list { projections { max('age') min('age') } } println "The maximum age i...
asked by 01.01.2016 / 21:21
1
answer

How to create POST, PUT and DELETE method in Grails application?

I have a Grails 2.4.2 application that I want to communicate with another application, and this interaction should occur through a Rest service provided by Grails. Today the way it is implemented I just inform .json at the end of the URL that it...
asked by 18.08.2015 / 20:06
1
answer

Encode loss while minimizing javascript in Grails

In my javascript file there is a message with the string "service" for example. When I run the project (run-app) and check the javascript by the browser, the word appears as: "service". But this is displayed correctly on the screen when the mess...
asked by 09.05.2016 / 09:05
1
answer

Problems installing Grails

I've set the GRAILS_HOME and JAVA_HOME faults I already used for Griffon , however when trying to access Grails I get the following error:     
asked by 13.06.2014 / 15:08
1
answer

Sql Groovy, pass the value of an IN parameter

I have the following code: def pessoaIds = [1, 2, 3, 4, 5] def query = "SELECT * FROM Pessoa WHERE id IN(?)" def pessoaList = sql.rows(query, [pessoaIds]) In this case "PersonList" returns an empty list; def query = "SELECT * FROM Pessoa...
asked by 16.03.2015 / 17:29
0
answers

What's the difference in Grails between run-app and IntelliJ's run.Aplication

I'm working 1 year with Grails and IntelliJ Community 14, and I've been noticing some different behaviors between running the project through the command line and using the IDEA Run 'Aplication.main ()'. I put this doubt to try to understand...
asked by 09.05.2016 / 08:24
1
answer

Grails 3.0 encoding does not work outside of index.gsp

I'm creating a Grails project with version 3.0.4 and something strange happens: Two GSPs with the same content: views > index.gsp: views > domain > show.gsp: <!DOCTYPE html> <html> <head> </head>...
asked by 10.09.2015 / 05:04
0
answers

Changing the Spring Security Core and Groovy Grails login form

Good afternoon, I made a change in my application to use my login form instead of the standard Spring Security Core, the redirection is occurring normally, however when clicking the button to enter nothing happens. Here is the code for my form:...
asked by 13.05.2015 / 18:12
1
answer

Problems updating record data with dataBinding in Grails

I have the following domains: class Cliente { static belongsTo = [empresa: Empresa] static constraints = { } } class Empresa { /* aqui temos alguns atributos*/ } When creating a new business class record I can do good:...
asked by 13.08.2014 / 22:58
1
answer

ERROR TO MANY REDIRECTS Spring Security Core and Grails

Well, I'm developing a Grails application and I've decided to implement authorization and authentication. It's working perfectly, however. I've decided to change the login form to my form, not the Spring Security Core standard. However, I'm havin...
asked by 13.05.2015 / 17:06