Grails is an open source web application framework which uses the Groovy programming language (which is in turn based on the Java platform).

learn more… | top users | synonyms

0
votes
0answers
85 views

Multiple Quartz scheduler for different Applications in a same schema?

Currently I've defined a specific quartz scheduler for all of my applications in a same schema with same tables. Also, there is a specific trigger for all of them. Everything is fine after running two ...
0
votes
1answer
80 views

Dropping database in Grails is too easy. How to prevent accidental drops?

I just dropped production database. It happened because I used dbCreate = "create" instead of "update" in DataSource.groovy. I was changing some domain models and wanted to update the database. ...
0
votes
1answer
59 views

Checking equality of a request parameter

I have a codes table that stores name value pairs and a group name. So for this example let me demonstrate with two rows, each row would represent one value in the same drop down. Group Name = ...
2
votes
1answer
125 views

Moving business logic from services to classes?

I have a Grails application with a number of services that are starting to get very large. The flow in the majority of my service methods is Database read (Returns DBCursor from MongoDB) Iterate ...
1
vote
1answer
196 views

Best practice for comments above methods in a grails application?

I'm writing a grails application and am not sure what the best practice is with regard to comments outside of method blocks. I've done a bit of research and there seems to be conflicting views on how ...
1
vote
3answers
250 views

WYSIWYG Editor - Inline Comments

I am working on a user driven cms site. Think of it like stack overflow. The users can write posts, and publish them to the web. I am using a WSGI editor to generate the content. One of the ...
0
votes
1answer
327 views

REST & Grails- A solution in search of a problem?

Over the past week, I've been struggling to adapt a Grails application to use the REST architecture. Problem is, I've had nothing but trouble throughout. For this application, the choice between ...
4
votes
3answers
160 views

What class structure allows for a base class and mix/match of subclasses? (Similar to Users w/ roles)

I have a set of base characteristics, and then a number of sub-types. Each instance must be one of the sub-types, but can be multiple sub-types at once. The sub-types of each thing can change. In ...
0
votes
1answer
645 views

What's the best practice for rendering a different GSP template based on the type of object in a collection?

Let's say I have a collection that is setup in my controller, named "things." In this collection is a heterogeneous assortment of objects. Let's say some are of type "Thing" and some others are of ...
-1
votes
1answer
773 views

Pros and cons of using Grails compared to pure Groovy

Say, you (by you I mean an abstract guy, any guy in your team) have experience of writing and building java web apps, know about filters, servlet mappings and so on, and so on. Also, let us assume ...
2
votes
1answer
286 views

Should the domain model include all the domain entities in my project?

I have currently reading Grails and I love it. In order to get hands on experience with Grails I decided to create a web application for some Management System. Ya as you can guess there are plenty of ...
1
vote
2answers
108 views

Ideas on making potential customer trust the web-site database

I'm developing a site for a potential customer who will need a lot of features for members and the various roles they will have, but also wants to have confidence in the "database". It is this latter ...
27
votes
5answers
12k views

Is Groovy going away? [closed]

I am sure this question has been asked many times. However, I like to ask it again with the intention of what is the future of these languages. I was first introduced to Groovy and really liked it. I ...
6
votes
2answers
1k views

How difficult would it be to migrate a Struts/JSP application to Groovy?

I have taken over development of a JSP/Struts application. Right now it's a bit of a mess, and I'm finding the JSP pages with Struts tags to be insanely verbose. Has anyone migrated a Struts ...
12
votes
4answers
837 views

Pitfalls in the Grails Framework

What are some of the biggest issues/pitfalls with using the Grails framework? I'm learning the framework now, and I really like it, but I need to know what major issues I may encounter when using it ...
1
vote
1answer
250 views

Groovy/Grails course content

Some Java developers have asked if I could give them a 2-day primer on Grails development. I'm assuming they're familiar with: Java language and libraries Java web development, e.g. Servlets, JSPs ...
16
votes
6answers
7k views

Reasons for a Java Developer to learn RoR

Just wondering if there are any reasons why a Java developer should learn Ruby on Rails knowing that there are technologies such as Grails or (especially) Spring Roo that can be more familiar?