Questions tagged [grails]
Web framework using the Groovy programming language. Groovy should also be tagged.
9
questions
0
votes
1
answer
83
views
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 ...
1
vote
0
answers
135
views
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
56
views
Dynamic field performance
A have a model with a dynamic field like so:
...
8
votes
2
answers
4k
views
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
...
4
votes
1
answer
349
views
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 ...
5
votes
1
answer
90
views
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
110
views
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 ...
2
votes
2
answers
994
views
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
2k
views
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:
...