Questions tagged [grails]

Web framework using the Groovy programming language. Groovy should also be tagged.

Filter by
Sorted by
Tagged with
0 votes
1 answer

Spring: Creating a Mutable Common Command Object or Controller Interceptor

I'm integrating with a 3rd party vendor that has Users and Organizations in it. My tool is a user administration tool that ...
  • 191
1 vote
0 answers

Display multiple video in video tag using timeduration in Grails Application

I've requirements to display video of some time duration in video tag. I've written following code for the same in my grails application. videoFeed.gsp ...
0 votes
1 answer

Dynamic field performance

A have a model with a dynamic field like so: ...
8 votes
2 answers

Registration, login and logout in a Grails application

I'm completely new to Groovy, but have many years of Java experience, and recently I have started working on a Grails application, currently it contains the following: User and Person domain classes ...
  • 10.7k
4 votes
1 answer

Parsing version number from a Java source file

I'm extracting the version number from a file like this one. It works, but I find it clumsy and longer than probably needed. I'd also appreciate some sanity checks as long as they don't make the code ...
  • 13.5k
5 votes
1 answer

Avoiding repetitive code for timestamping and updating status

This is some boilerplate I found myself writing on a new abstract class. It seems ripe for refactoring, but I'm not sure the best way to implement it more effectively. Is there a pattern for these ...
1 vote
2 answers

Domain object toString null check

Following advice to "Make good use of toString() for all Domain classes", I made what I thought was the most useful toString ...
  • 628
2 votes
2 answers

Grails overloaded controller workaround

I had an overloaded method, but Grails doesn't allow overloaded methods in controller actions. The overloaded method looked like this: ...
9 votes
1 answer

Generating a sequential number for app-wide use

I have to generate a sequential number for groovy-grails app wide use and came up with the following. However, is there a better way to do this? Domain classes: ...
  • 295