Well, after shamefully waiting over a year to do any kind of updates to this plugin, I've finally made some changes and merged in pull requests from others. Next steps are going to be fix some of the issues. Some great suggestions have come up in the Issues area on Github. In fact, I plan …
Tag: Technology
How to fix Parallels Desktop from hanging on startup
Recently, Parallels Desktop did not shut down correctly for me. When I went to start it back up, it just sat there with a spinning wheel, and a message saying "suspending." I did finally resolve the issue. Here's how I did it. 1) Quit Parallels. 2) Open up the Activity Monitor. On a Mac, this …
Continue reading How to fix Parallels Desktop from hanging on startup
XSS Sanitizer Grails Plugin
Well, earlier this week I published my first Grails plugin. I'm hoping that people will find it useful to add a general security plugin to parse out, and prevent XSS attacks on their website. It's a long way from being done, but I think it's a good start. It uses OWASP's ESAPI to strip out …
Click event slow in Chrome and Safari
Well, I came across an interesting quirk. Click events in Chrome and Safari were taking a couple of seconds before they were being fired. It was quite the head scratcher. Here's essentially what I was doing: At first, I just changed the <a> tag to be a <span> tag, and that worked. But, I couldn't …
How to inject two or more dependencies with the same name
Let's say you have two services named UserService and both are included in your Grails classpath. This can happen, for example if you have a "core" package, and an "application" package that extends services from "core". Here's what that might look like in our case: Well, if you try to use "UserService" in your Grails …
Continue reading How to inject two or more dependencies with the same name
How to pass the entire model to a template in Grails
One way to pass the model set in your view GSP is to use ${pageScope.variables}. Here's an example:
Grails resources plugin
I installed the Grails zipped-resources plugin on a new project the other day, and I noticed that by default it zips up everything it sends. This is fine, but when I tried to make it ignore the image files being served up, it wasn't obvious at first how to do that. Finally, I figured out …
Grails CamelCase Sensitivity
I ran into an weird bug today that took awhile to figure out. Basically, I was getting the error when I deployed some grails code to a linux box. In the error log, this is what showed up: And, in the HTML response, this is what showed up: It took a while, but I finally …
Selecting Popup Windows in Selenium
This example shows how to start a Selenium Server and run a Selenium client in Java. The example opens up a popup window by clicking on the link in index.html. It then selects the popup window by first using the "name=popupWindowName" option for selectWindow. It then grabs the original window (using "name=null"). And, finally, it …
Grails 2.0.0 lib directory fix
I recently had a problem with Grails when I started a new project in Eclipse with Grails 2.0.0. I tried adding an external JAR file to my "lib" directory by dragging the JAR file over to the directory. In Grails 1.3.7, the JAR file would then get added to the list of grails dependences (after …