Hi,
I am reading an XML file with a schema based on a Domain Class.
Here is a simple example for illustration (my current situation concerns a lot of fields from a lot of classes) :
class Player {
String name
Date birthDate
}
The XML file to read is :
<players>
<player name='P1' birthDate='12-09-1983'/>
</players>
So my ques...
Hi,
I'd like to create another resource bundle to organize my Grails app. Grails provides a 'messages' resource bundle and I need to create a 'myApp' resource bundle.
How can I create a new resource bundle and read its properties with the 'g:message' GSP tag ?
Thanks a lot.
...
Has anyone used Maven, Grails, and App Engine together?
I can use Maven with Grails and Grails with App Engine, but using them in concert gives me the following error:
The command 'grails run-app' is not supported with AppEngine. Use 'grails app-engine' to start the application
Is there any way to "pass through" the Maven goal to ...
Has anyone gotten Grails working with Postgres? I have used this tutorial and everything seems to make sense and be correct to me. However when I 'grails run-app' I get this error
Cannot create JDBC driver of class 'org.postgresql.Driver' for connect URL 'jdbc:postgres://10.0.0.21/tribes'
java.sql.SQLException: No suitable driver
My D...
Hi,
Even if the question subject seems complicated, the issue is quite simple.
I create an XML file with the following script:
def xmlFile = new File("file-${System.currentTimeMillis()}.xml")
mb = new groovy.xml.StreamingMarkupBuilder()
mb.encoding = "UTF-8"
new FileWriter(exportXmlFile) << mb.bind {
mkp.xmlDeclaration()
out <...
If I use the following groovy code:
description: '''Join the Perl programmers of the Pork Producers
of America as we hone our skills and ham it up
a bit. You can show off your programming chops
while trying to win a year's supply of pork
chops in our programming challenge....
How do I setup Account Registration, Login, etc in Grails when developing for the Google App Engine? Normally I would use the Acegi plugin but I've read that it doesn't work with Google App Engine.
For reference, I'm using the Grails app-engine and gorm-jpa plugins.
...
Hi,
When I execute the following script:
mb = new groovy.xml.StreamingMarkupBuilder()
mb.encoding = "UTF-8"
xmlClosure = {...} //BIG XML File building (at least 300 KB)
new OutputStreamWriter(new FileOutputStream(exportXmlFile), 'utf-8') << groovy.xml.XmlUtil.serialize(mb.bind(xmlClosure))
The XML export file is truncated!!
If ins...
Hi,
I'm using Hibernate (in a Grails app) and the transactional boundaries are service methods, i.e. every time a service method is called a transaction starts, and every time a service call completes the transaction is either rolled back or committed.
If one of the database operations causes a database trigger to fire, and this trigge...
I am using on my table to sort the values. but it is causing wrapping up the column header on firefox. Its work fine on IE.
can anyone suggest some solution for this?
using grails 1.0.1 version.
thanks
...
By using grails I have to consume WCF WebService.I was trying but could not.If someone could just tell me the steps to call a webservice by using grails.
...
I want to test a Grails controller which calls a service. I'd like to mock the service. The Service has a method:
JobIF JobServiceIF.getJob(int)
and JobIF has a method:
String JobIF.getTitle()
Here's my controller
def workActivities = {
JobIF job = jobService.getJob(params.id)
[career:job]
}
I understand that I need to mo...
Hi,
I have groovy 1.7 beta 1 in my path and GROOVY_HOME pointing to same groovy 1.7 beta 1 directory. I have installed grails 1.2-M3, and set GRAILS_HOME to point to grails 1.2-M3.
I would like to try some groovy 1.7 features in my grails app, anonymous inner classes to be precise. I am receiving a compiler error even though this feat...
Using markup with the render is not adding the form tag.
I tried this with contentType "text/html", "txt/xml" and it does not work.
I have this in my controller:
def myTest= {
render(contentType: "text/plain") {
div(id:"myDiv") {
p "somess text inside the div"
form (action:'get') {
p "inside form"
}
}
...
I'm following Scott Davis' tutorials on developing grails apps, but whenever i try to run my app (or indeed his source code) i get "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." Safari gives a similar error message as does Opera.
As i've tested the original authors...
Hi,
using Grails 1.1.1
I have domain in Grails Person. Person can be related to another Person buut they can be stand alone.
this is like:
I have A as my friend
and A have me as his friend
B can be stand alone (not having friend)
should I type
Person {
belongsTo = [friend:Person]
hasMany = [persons:Person]
constraints {
...
I have recently started reading up on Grails and would like to use SQL Server security schemas to group tables generated by GORM. However, I cannot seem to find a reference explaining how to perform this task. I am new to Hibernate as well and would like to know if this is possible. Thank you.
...
Hi folks.
Im toying with grails but i'm having troubles when render JSON in the controller, i have this code
import grails.converters.*
class CourseController {
def index = { redirect(action:list,params:params) }
// the delete, save and update actions only accept POST requests
static allowedMethods ...
I'm a full time Java developer of around 4 years, professionally. I'm a GWT fanatic. I love Java. Here's the problem: In my free time I often fall victim to the verbosity of my favorite tools for doing "heavy" development. I also often fall into the trap of obsessively engineering my software. I'll end up with the most beautiful un...
I came across Nimble yesterday, but couldn't get past Step 1, configuring BuildConfig.groovy to find the Nimble's remote repository.
My BuildConfig.groovy file is one line:
grails.plugin.repos.discovery.intient="http://intient.com/downloads/grails/"
Here is the message I get when running grails install-plugin nimble 0.2:
Welcome...