Most voted "grails" questions
Grails is an Opensource framework for web applications that uses the Groovy programming language and was developed for JVM.
Learn more…32 questions
Sort by count of
-
4
votes1
answer110
viewsCriteria of the grails
Someone please tell me what this ${result[0][0]} means because they put two pair of brackets? def criteria = Person.createCriteria() def result = criteria.list { projections { max('age') min('age')…
-
4
votes1
answer799
viewsHow 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 as it is implemented just I…
-
3
votes1
answer62
viewsLoss of Encode when 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: "§the service". But…
-
2
votes1
answer68
viewsProblems in the installation of Grails
I set the variables GRAILS_HOME and JAVA_HOME that I used to use for the Griffon, but when trying to access the Grails I get the following error:…
-
2
votes1
answer138
viewsProblems updating registry data with dataBinding on Grails
I have the following domains: class Cliente { static belongsTo = [empresa: Empresa] static constraints = { } } class Empresa { /* aqui temos alguns atributos*/ } By creating a new register of…
-
2
votes1
answer304
viewsSql 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…
-
2
votes0
answers258
viewsChanging 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 redirect is occurring normally, however when clicking the Login button…
-
2
votes1
answer75
viewsGrails 3.0 encoding does not work outside the index.gsp
I am creating a Grails project with version 3.0.4 and something strange occurs: Two Gsps with the same content: views > index.gsp: views > Domain > show.gsp: <!DOCTYPE html>…
-
2
votes0
answers40
viewsWhat’s the Difference in Grails between run-app and run. Intellij Application
I’ve been working for 1 year with Grails and Intellij Community 14, and I’ve noticed some different behaviors between running the project through the command line and using IDEA’s Run…
-
1
votes4
answers277
viewsStart grails application
So, I’m starting to use grails/groovy now, along with html/css/javascript and, as a good beginner, I’m full of doubts. I created a login html page with google plus and wanted to run the application…
-
1
votes1
answer162
viewsERROR TO MANY REDIRECTS Spring Security Core and Grails
Good morning, I am developing a Grails application and decided to implement authorization and authentication the same is working perfectly however I decided to change the login form to my form and…
-
1
votes1
answer86
viewsDifference between closures and functions
Closures is a Function in Groovy ? There is some difference between them?
-
1
votes0
answers13
viewsProblem logging in with Grails 3 on Kubernetes
I’m having problems authenticating my system. I’m using Grails 3 with Springsecurity and when I will scale to 2 or more replicas in my Kubernetes cluster authentication stops working. What I might…
-
1
votes1
answer164
viewsWhen running PUT method on Grails application system inserts new record instead of updating
When trying to run JSON below via PUT method in a Grails application the system inserts a new record. Urlmappings.groovy class UrlMappings { static mappings = {…
-
1
votes0
answers32
viewsError in performing criteria with filter on object belonging to Composite ID
An error occurs when I try to search the Car domain class by applying a filter on the Mark which is a FK and is part of the Composite ID. class Carro implements Serializable { Marca marca LocalDate…
-
0
votes1
answer85
viewsRemove database data with GRAILS AND GORM
I’m learning a little bit about GRAILS and I’m having the following problem I can display the information of some registered users usually more when I try to delete them I can’t and I get no error,…
-
0
votes1
answer192
viewsProblems when running on grails project
I created a new project here and I’m having trouble giving run, I’m using as ide the plugin of grails to the eclipse, it does not attest any error in the code but while trying to run I get the…
-
0
votes1
answer65
viewsabout crud with attachment I’m not managing to make the save action
You’re using it to run a Grail action. It is the following that the action needs to save an attachment and a title to the attachment. Someone gives me links of Ruds with attachments?
-
0
votes1
answer96
viewsGrails Spring Security check if User belongs to Group (Rolegroup)
I have the following domain classes: User hasOne Rolegroup hasMany Roll Examples: Rolegroup: Admin, Professional, Client, ... Roll: ROLE_ACTION_1, ROLE_ACTION_2, ... How do I check if the User…
-
0
votes1
answer196
viewsCreating Project Grails at Intellij
I’m having trouble creating a Grails project at Intellij. I tried with multiple versions, 2.4.4, 2.5.0, 2.5.6 and all the same error occurs while sending the run-app command: |Running Grails…
-
0
votes0
answers61
viewsAjax function repeats on the page depending on the number of results returned from the query, what can it be?
Good morning the/ I am working on a Grails project that uses Javascript to perform the search (both by category and by text) and item pagination. However, after a few searches per category, the…
-
0
votes1
answer83
viewsIt’s making a mistake when I try to do the ORM
I created a table but when I run the application more than once it gives this problem. Why does this happen? environments { development{ dataSource { dbCreate = "update" // one of 'create',…
-
0
votes0
answers314
viewsHow to remotely load options in auto complete using Typeahead?
I was studying the typeahead.js with bootstrap 3, and I’m trying to make an auto-complete request to the server to bring the list options. This is the plugin I’m using: Github Bootstrap 3 Typeahead…
-
0
votes1
answer40
viewsi18n grails and jquery with different languages
I’m using the language internationalization feature (i18n) in a Grails project. A portion of the tags are inserted directly into the files. gsp and another part is in the JS scripts…
-
0
votes2
answers220
views#GRAILS gsp search filter not passing parameters to controller
I have a form on a gsp page and this form has a g:textField that the user will enter values and then click on a button to filter the grid values. For example: there are 3 registers on the grid...…
-
0
votes1
answer739
viewsConfigure arrival route in pfsense
Guys, I’m trying to get my app up in the air, but I have no idea which way to go. It is a server developed in grails, already managed the . War and it runs on top of tomcat7, when access locally and…
-
0
votes0
answers53
viewsRun run-app is returning error
I have a 3 year project behind me, and I need to update it to generate one. War and put it running on top of Tomcat, but when I run the grails run-app command is returning me the following error: |…
grailsasked 6 years, 7 months ago Marcius Leandro 462 -
0
votes0
answers25
viewsDebug - Find the route of my http Rest - Grails
I have a call POST http Rest, where I get a file my parameters and mount it to log in, I believe it is talking because the route I am mounting this wrong, It is missing some bar, or capital letters…
-
0
votes1
answer88
viewsDevelopment status of the Eclipse Grails-IDE plugin?
I understand the Eclipse plugin Groovy Development Tools is still being maintained by the Pivotal teams, as a release version was released on January 6, 2020. Unfortunately, this plugin does not…
eclipse groovy grails eclipse-plugin grails-pluginasked 4 years, 10 months ago Philippe Gioseffi 3,202 -
0
votes0
answers14
viewsGrails - Plugin Export / Format Fields Output
I am making a report, using grails and the export plugin and I have a problem. I have fields that depending on the situation can come null, I do a search with criteria in a certain class, there I…
-
-1
votes2
answers305
viewsNF-e Electronic Invoice with Grails
I am developing a commercial application in Grails. In this application I will need to issue Electronic Invoice (NF-e). Is there any API, library or plugin that I can use in Grails? About the…
-
-1
votes1
answer16
viewsError using Gradle distribution
I’m starting out in the groovy world with Grails. Running the command 'dbm-update' (to update with bd on my machine and the Migration etc) causes this build error. I know almost nothing of java. (…