Im working on a groovy on grails conference management system which was written by a student temp a few months ago. Unfortunately theres only a very poor documentation and the style of programming is not that nice (check out the comments)...
well, heres the problem:
there is a domain class "participant" - within the view there is a poss...
I have never created a high traffic site so I have no idea what the best long term plan is. There is no room for a dedicated server in the budget. I'm currently using VPS hosting for my current site. I was going to stick with VPS and migrate grails. I looked at Django and python hosting plans (which look cheaper than VPS plans) from fatc...
Hi,
I use the Searchable plugin with Grails I have the need to change the directory to which Compass points to, depending upon a UI choice by the user.
Normally, this value is set in the compassConnection variable of the searchable map in grails-app/conf/Searchable.groovy, like so, and gets called at app startup time:
searchable { com...
I'm following the Grails Mail tutorial: http://grails.org/A+simple+EmailerService and it mentions "Then copy two jar files into the application local lib: activations.jar and mail.jar.". Though I can do the manual copy, I was wondering if there's some way I could update my Ivy configuration file to do that pulling automatically instead. ...
If I leave grails.views.default.code='none' in the grails Config.groovy, it's up to me to HTML encode my expressions explicitly in the GSP files: ${myValue?.encodeAsHTML()}.
If I set grails.views.default.codec='html" in the Config.groovy, then the HTML encoding happens automatically for every expression: ${myValue}.
My question: If I s...
By default, Grails uses lowerCamelCase for the URL's. While this isn't a big deal, I sort of favor the the all lowercase URL design, which also reduces gotchas from "normal" people not realizing that case can sometimes make a difference.
I could use the custom mapping to add lowercase versions of all of my controllers (which I do in some...
Hi,
In my Grails app I have a controller action that does this:
def activeMember = {ConfirmSignUpCommand signupCommand ->
flash.signupCommand = signupCommand
render(view: "confirmPassword")
}
When the form on confirmPassword.gsp is submitted it is handled by the following action:
def validatePasswordConfirmation = {
de...
I have a Grails app that loads its data from xml files and delivers rss feeds via rome. I don't have any domain classes and my app has no datasource. I don't want Grails to load an in memory hsql db when the application has no need for it. Deleting the DataSource.groovy file prevents me from launching the web app, it seems as though the ...
I've recently become a little frustrated with Django as a whole. It seems like I can't get full control over anything. I love Python to death, but I want to be able (and free) to do something as simple as adding a css class to an auto-generated form.
One MVC framework that I have really been enjoying working with is Grails (groovy). It...
this started happening a day or so ago. java has lots, but groovy, math, oop, and grails have zero or one.
...
I am writing a Grails application that will mostly be using the springws web services plugin with endpoints backed by services. The services will retrieve data from a variety of back end databases (i.e., not via domain classes and GORM). I would like to store the sql that my services will be using to fetch the data for the web services...
I am making modifications to /grails-app/views/index.gsp.
When I save the file and refresh http://localhost%3A8080/index.gsp in Firefox, I am getting an old version of the file.
Is there a way to prevent Grails from caching and rendering old versions of the file?
(I tried restarting the server and clearing Firefox's cache.)
Thanks!
...
I have jasper report which accepts Integer parameter .
I am using g:jasperreport tag to call the report . body of this tag has input html
which gets passed to report.
But's the report is not working. It is giving invalid format exception.
Pl. help
Thanks in advance.
Abe
...
When I 'grails run-app' each edit of a controller seems to give me a new controller instance of that class, but the previous instance(s) remain: they are listed on the default index.gsp, they show up as duplicate tabs in the Navigation plugin menu. How do I tell grails to drop the previous instances?
(Using grails 1.1.1, java 6, on Linu...
Hi,
Many of the available controller methods (chain, forward, redirect) take a map which can include keys such as:
id
params
model
A couple of questions about these:
Is 'id' just an alias for a request parameter named 'id'? In other words, is there any difference between:
chain(controller: "member", action: "showProfile", params...
How do i render a view in a portlet. Have an action that handles a form submit from a portlet view window.
def actionView = {
//TODO Define action phase
println "IN THE ACTION !!!!"
String name = portletRequest.getParameter("name")
if(name){
println "RESNDERING RESULT"
render(view:'result',m...
I'm working on a grails application and I've kept looking for some solution to my problem for the past 15minutes - I guess, there's an pretty simple solution to this...
The point is, I have a view where I have a g:link tag - it works fine, but the visuals are kind of ugly. Therefore I want to disguise that g:link thingy with a normal bu...
Hi. I have two grails servers:
Server - has read/write access to the database
Web - has read-only access to the database, and for every write it sends a request to the server
The problem: How do I make the Web's domain objects read only in one place (config file) for the entire run of the application, instead of writing caching: 'rea...
I'm getting the following error when I try to build a war in Grails. Any thoughts on what could be causing the issue? Any tips on debugging the Groovy scripts that are building the war?
[web] $ cmd.exe /C D:\dev\tools\grails-1.1\bin\grails.bat war cloudfi.war && exit %%ERRORLEVEL%%
Welcome to Grails 1.1 - http://grails.org/
Licensed u...
I'm looking to make a website that will probably get some heavy, repetitive traffic. Is grails up to the task?
...