Browsing articles from "July, 2011"
Jul
15
2011

Yes I can locate a GORM API implementation!

lady-beetle

I’ve been having the weirdest issue with Grails 2.0M1 (nee 1.4M1). My application ran fine with “grails run-app”, but would fail when did a “grails tomcat deploy” and deployed to either Tomcat 6 or Tomcat 7. The error I was getting was… ERROR initWebApplicationContext, Context initialization failed org.springframework.beans.factory.access.BootstrapException: Error executing bootstraps;  nested exception is java.lang.IllegalStateException: Cannot locate GORM API implementation. You either don’t have a GORM implementation installed (such as the Hibernate plugin) or you are [...]

Jul
14
2011

Eliminating annoying flicker transitions with jQuery Mobile on Android

Android Logo

I’ve been using PhoneGap along with jQuery Mobile to do some protoyping work for a client on a range of mobile devices.  When testing on Android 2.2 (HTC Desire in my case), I noticed a nasty flicker on the CSS swipe transition. Seems others have seen this too. On my device it seems to occur once at the start of the transition, and once at the end. Anyways, after much googling, the stackoverflow magic that fixes it [...]

Jul
4
2011

Using Grails links from JavaScript: a micropattern

Chain with Knot

You want to include a link to one of your Grails actions (say an AJAX target link) in one of your JavaScript files. What to do? Well you could just inline your JavaScript in your GSP file, right? Then you can just access all the GSP tags you like and the problem just goes away, right? <r:script> console.log(“Now hacking on ${assessment.id}”); $.ajax({ type: ‘GET’, url: “${g.createLink(action: ‘addThreat’)}”, data: { assessmentId : “${assessment.id}” }, /* more [...]

Glen Smith

About Glen

Co-author Grails in Action