Questions tagged [Grails] (10)

5
answers

Who already tried, what would you recommend to study Groovy (literature, websites)?

Yes, the overall impression of the experienced colleagues is also interesting. Interested, as the only scripting language in my Arsenal was PHP, for many reasons want to abandon it. The main candidate to replace it — Groovy.
steve_Brue asked October 14th 19 at 12:32
1
answer

XML GROOVY-XML

You need to replace xsl for groovy. Interested in the process of accessing the data in xml. For the formation of the output xml used groovy.xml.MarkupBuilder. Help Board... it is impossible to Google.
vicente.Walk asked October 10th 19 at 08:16
4
answers

Advise books and resources for learning Groovy

-
Cristal_Considin asked October 8th 19 at 06:18
4
answers

Scriplet groovy docx: share in public?

For one of his projects need to form contracts documents in docx format. Capabilities of iReport did not suit us (for a long time to understand the limited styles, focused on the report). Born the decision and implementation: added ability to work with scriplets view <% out.print('Bob'); %> and ${contract.num} directl...
joseph asked October 8th 19 at 00:25
9
answers

How do you use Groovy in your Java project?

Groovy, I yet know is bad, so, actually, I have two questions: 1. Would love to hear about the experience of using Groovy as part of Your Java application. Perhaps it is only the domain objects or business logic, perhaps both. In particular interested in whether you can use Groovy for the entire project or only for those pa...
Elwin.Sanford asked October 7th 19 at 21:19
1
answer

The IDEA finds the controller class, launched from junit IDEA — no longer exists?

There is a unit test on galcovski controller is XXXController. IDEA no error lights, all the connections in place (of course). However, when running the unit test XXXControllerTest from idea (ctrl+shift+f10) error:junit.framework.AssertionFailedError: Exception in constructor: testXXX (java.lang.ClassNotFoundException: XXXC...
misae asked October 3rd 19 at 19:53
1
answer

How to use groovy as a templating engine for Java applications?

There is a CLI-application that will launch the user some information based on his own template. The application itself is written in Java, but all user settings and configurations are made using a homemade Groovy DSL. Now (to use one language for settings) there is a desire to SUSAT and for groovy templates (now used FreeM...
Monty.Beah asked October 3rd 19 at 07:12
1
answer

Compile error in Heroku

Good afternoon. Try to download here this project in Heroku. When you run the command sudo git push heroku master getting errors. All the extracted result is visible here. Learned that the new version of grails error loading Groovy class is listed as a bug that still not fixed. Decided to use an older version of the code, ...
Lane59 asked September 27th 19 at 01:16
0
answer

The asynchronous filling of the array in Grails 3?

Hi, friends. I'm not a real welder betandwin, but there is a need for something in Grails 3 to do.def getFormOptions() { def output = [:]; output.educationTypes = getEducationTypes(); output.familyStatusTypesList = getfamilyStatusTypesList(); output.spousesSocialStatus = getSupouseSocialTypesList(); render output as ...
mable_Little asked June 28th 19 at 00:38
0
answer

What's wrong with the promises in Grails 3?

Hi! Here's a simple example from official documentation:def test() { def map = new PromiseMap() map['one'] = { 2 * 2 } map['two'] = { 4 * 4 } map['three'] = { 8 * 8 } map.onComplete { Map results -> render results as JSON } } The result is unpredictable and often wrong - {"one":4,"two":16,"three":64} Following th...
mable_Little asked June 28th 19 at 00:15
  • 1