grails

Checking Permissions on Ajax Requests

Grails 1.3.1 spring-security-core 0.4 jQuery 1.4.x I need to figure out how to check security permissions on ajax requests. For example, I have a calendar displayed in a tab using the FullCalendar jQuery plugin. When I double click a day I display a New Event screen in a new tab. This is done like so: $(tabId).load(contextPath + '/e...

Why do I get a "Null value was assigned to a property of primitive type setter of" error message when using HibernateCriteriaBuilder in Grails

I get the following error when using a primitive attribute in my grails domain object: Null value was assigned to a property of primitive type setter of MyDomain.myAttribute org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of MyDomain.myAttribute at grails.orm.HibernateCriteriaBuilde...

Grails Render Template Different Controller/Path

I have a template that exists under views/dashboard/_myTemplate.gsp and from the DashboardController I can simply call render template:'myTemplate' and all is well. I have a need to render this template from a different controller but the render method doesn't allow you to specify a controller and I can't seem to figure out how to de...

Convert String or String[] to List with Groovy

I have a multiple select variable posting to controller. The way multiple select works is that it is passed as a single String if there was only one value selected and as a String[] if more than one values selected. I want to keep processing simple and treat the passed value(s) the same. So the best way I can up with is to convert it to ...

grails named queries

I started to write a simple named query in grails ..but it says missing method on the domain for the named query:( am i doing something wrong? I referred the documentation and i find no problem with the code.Any help?? I just tried the example in the documentation. class Publication { String title String author Date datePublis...

How to use HTML in grails messages.properties for mail sending

In grails, I use a GSP template to render an HTML email sent out with the mail plug-in. This works fine, however the GSP template uses a param which is in turn retrieved from my messages.properties file. Now I want to use HTML, e.g. <br/> inside the messages.properties, but it in the mail it appears as text and the tag is not interpreted...

Dynamic params using remoteLink in Grails

I want to make an Ajax call using remoteLink (with Prototype as the Javascript library) but I need one of the parameters being passed to be the value from a textfield. Here's what I have so far in my GSP: <input id="email" name="email" type="text"/> ... <g:remoteLink action="addEmail" params="[email:???]">Add</g:remoteLink> What do I...

Disable grails Searchable plugin default search page?

I'm trying to disable the Searchable plugin default search page (http://localhost/searchable/), but haven't found a way to do it. Anyone know how this can be done, preferably in a legit way, but resorting to trickery if necessary? ...

Experiences using Groovy++ in Grails

Hi, has anybody tried to implement a Grails solution having Groovy++ under the hood ? ...

grails app will not deploy on tomcat FAIL - Application could not be started

My first experience with implementing my own rackspace cloud server is going really well up to this point. I have Debian installed and I am running tomcat 5.5 on the server. I have a grails application that I created a war file of. (I am using grails 1.3.2 BTW) I open the Tomcat manager and use the upload and deploy war feature. The ...

Old AppFuse ... What Framework is StraightForward Migration?

We started building our website / application back in 2006, and chose to use appFuse 1.9.4 as our application framework. There isn't a direct upgrade path to AppFuse 2.x and now AppFuse has been discontinued. We're stuck on Spring 2.0 and Hibernate 3.2 and we're using JSTL, along with XFire (and SOAP). We'd like to upgrade our framewo...

What lightweight web MVC frameworks Java has?

I'm a newbie in Java world, but I got solid knowledge of RoR and ASP .Net MVC. I need to develop a web application which will serve as a web UI and also will provide web services for other applications to save and get data and run some async jobs. I don't have any experience in Java EE and I would like to avoid it because even setting u...

grails portlet namespace

How to use namespace in grails portlets for Liferay . Generally we use this in jsp portlets : '<portlet:namespace />_Users' Can we use the same for grails too ? thanks. ...

Using XML for dynamic contraints in Grails

I am trying to dynamically populate the static constraint ={} at run time. Is there a way to do this. Example code: Normal statement: static constraint = { lastName(blank:false, maxSize: 100) } What I am trying to do: static constraint = { call to an XMLSlurper that returns a HashMap of lastName as a key and (blank: false, maxSize:...

How to use Grails Dependency cache in IDE?

Is there a way to use the ivy cache grails dependency DSL creates within an IDE like eclipse or netbeans? Or must I manually add all dependencies to the IDE lib folder? I've looked into plugins like ivybeans and ivyde, but they seem to require ivy.xml and ivysettings.xml files, which grails does not produce. ...

Grails gorm-mongodb plugin issue

Hi, Created Grails app as specified in http://jkuehn.github.com/gorm-mongodb/. Executing grails run-app I get the following error. 2010-07-06 11:11:33,552 [main] ERROR StackTrace - Sanitizing stacktrace: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve referen...

How can I solve this problem? "Error executing tag <export:formats>: groovy.lang.MissingMethodException: "

It seems like it´s not getting the right method or siganture. It has already worked for a long time, but yeterday I got this Error and I don´t know where I can start. I reinstalled the plugin "export 0.3" and I installed the newest Verion "export 0.6". All attempts were in vain. I´m using Grails 1.2, Groovy 1.7 and export 0.6. Here...

javascript, ie: xml with special characters, loadxml(xml) returns false

Hi! I am sending a xml document with grails to the webbrowser and want to show parts of it. However i get an error. I debugged and the error was because of the special charakters like ü,ö a.s.o In Firefox I dont have any problems, it works. However Internet Explorer 8 doesnt load the xml. I looked at the response, and saw, that it canno...

using custom Id column mapping with Searchable plugin

I have a Domain class with a custom Id mapping ... ... String ensemblGeneId String ensemblTranscriptId String ensemblProteinId String proteinSequence String topologySequence String topologyRatio String description String geneName .. .. .. static ma...

IBM Grails example for Google Maps V2 for V3

Hi, I've been following the Grails and Google Maps tutorial by IBM, here I noticed that it's for Google Maps API v2. I tried to do the same thing using v3 syntax but I'm clearly doing something wrong. I got the example in the tutorial to work, so it get the lat and lng from the db. I'm at the office now and don't have my example availab...