I have a Liquibase migration that I manually run to load seed data from several CSV files into my database. I would like to run this migration each time I run grails run-app.
I think I have two questions in one:
How to I integrate the migrate
command into my grails run-app ?
How do I clear the DATABASECHANGELOG
to allow me to run th...
Hi,
I have a template that renders a chart according to a given list (retrieved from my domain layer). This template is displayed several times (with a different list) on a same page (let's say "home page") and in several pages as well.
For instance,
<g:render template="/template/chart" model="order: 'asc', orderBy: 'age', max: 5, dom...
I haven't been able to figure out how to deploy multiple grails applications with Apache/Tomcat where a virtual host is mapped to each grails app
I can get it so that
http://virtualhost1.example.com/myGrailsApplication-0.1/
works, but what I want is for
http://virtualhost1.example.com/
to go directly to my application. A lot of tu...
Hi !
How do you (if you) manage client side validation with grails ? Do you use a plugin or do you mirror your constraints using a javascript framework ?
Cheers
...
Which is the best security solution for grails among acegi, jsecurity and Stark security?
regards
Josh
...
Hi,
I'm using the searchable plugin for Grails (which provides an API for Compass, which is itself an API over Lucene). I have an Order class that I would like to search but, I don't want to search all the instances of Order, just a subset of them. Something like this:
// This is a Hibernate/GORM call
List<Order> searchableOrders = Cus...
Hi there,
I'm following the code examples in 'The Definitive Guide to Grails' by Graeme Keith Rocher, and have come across a rather unusual stumbling block.
Essentially, 2 domain classes exist - Bookmark & Tag.
Bookmark:
class Bookmark {
static hasMany = [tags:Tag]
URL url
String title
String notes
Date dateCreated = new Date()
}
...
I have a list of Team objects that have an Integer seed property. I want to edit all the teams' seeds at once, in a single form. I'm sure that Grails supports indexed parameters, but I can't get it to work.
Here is what I have, and it works but I'm jumping through way too many hoops and there's gotta be a better way.
gsp:
<g:form acti...
I am implementing a many-to-many mapping in grails using 3NF,
Not using the hasMany or belongsTo property.
Taken from this article it shows and explains quite a lot about its advantages.
Article: http://burtbeckwith.com/blog/?p=169
Presentation notes: http://burtbeckwith.com/blog/files/169/gorm%20grails%20meetup%20presentation.pdf
I'...
Striving to ship a well documented application, I'm looking for a good way to describe a REST API for my Grails Application users.
I know that REST calls should be simple enough to be described by examples, but it doesn't feel formal enough.
I've spent a couple of hours looking for a solution suggested by other Grails users, but didn't...
Hello,
How can I configure Grails (in DataSource.groovy file) to use specific schema that a given username has access to, but it is not necessarily the default schema for that user.
Thanks
...
Hi,
In my Grails app, I'm using the Searchable plugin for searching/indexing. I want to write a Compass/Lucene query that involves multiple domain classes. Within that query when I want to refer to the id of a class, I can't simply use 'id' because all classes have an 'id' property. Currently, I work around this problem by adding the fo...
I need to add common actions to a number of my controllers without using inheritance. All our controllers extend an Abstract controller and the functionality I want to include does not make sense in the abstract controller.
My initial idea was to use a Mixin, but it appears that actions, since they are closures, are not 'mixed-in' to th...
I was looking around to see if there is an equivalent to django/RoR in java.
I found:
Play Framework
Grails
Does anyone have ever tried those frameworks, or do you know any other?
Are they faster than django/RoR?
...
I am rendering a command class as XML via
render foo as XML
where foo is an instance of the command class.
This successfully returns an XML for the objects value. However, the generated XML also contains a class element, e.g.,
my.package.ClassNameOfCommandObject
This also happens when I do the same for a standard domain class, a...
Not sure how it is called...maybe you can help me out...
I got a lot of Addresses. I want to get an overview and created so called Addressgroups like "My Friends" for example.
Some Addresses have multiple Groups.
Code works fine.
What i need is a way to display all my availble Groups in one List on my Controller. The User must be abl...
So I have a navigation template (/common/_navigation.gsp) that is getting rendered in the Grails projects main Layout file (/layouts/main.gsp). How do I pass some kind of variable/parameter/arg from the individual view files to layout and eventually into the navigation template? I just want the right tab to be highlighted when I'm on a...
I'm running MacOS 10.6 with the default settings for my machine with Internet Sharing turned on.
What needs to be configured to allow access to my machine's grails/jetty instance on a specific port?
I can do 'http://localhost/' as well as 'http://192.x.x.x/' but if I were to set my grails app to run on a specific port, I can't access ...
I didn't think I made any tweaks to my machine configuration lately but all of the sudden, after I performed a 'grails clean', followed by 'grails war', I'm unable to build my project due to: "java.lang.UnsupportedClassVersionError".
JDK: 1.5.0_19 on MacOS 10.6
Grails: 1.1.1
Groovy: 1.6.5
Here's what I get when I execute 'grails war'...
Hi,
I'm working on Grails web application and need to upload files.
I have a form (simplified here):
<g:form action="save" method="post" enctype="multipart/form-data">
<input type="file" id="image" name="image" />
<input class="save" type="submit" value="Create" />
</g:form>
and in Controlle...