Archive for the ‘groovy’ Category

Securing Grails Plugin Artifacts with Filters

So you’ve just installed the handy dandy Spring Security plugin (http://grails.org/plugin/acegi), which makes it incredibly easy to secure entire Grails controllers and/or controller actions with annotations, such as the following: This is enabled by turning on controller annotations in your SecurityConfig.groovy file: So all is now good in our project. We can secure either controllers [...]

Continue reading »

Making Java “Groovier” with LambdaJ

I spent the better part of yesterday tracing my way through the codebase for a large-scale enterprise application that my team is building right now, and I happened upon the following piece of code: //…imports excluded for clarity public class BusinessActivityBinMetaClassHelper { //… public static List<Long> getSrmMetaClassIdListJava(List<BusinessActivityBinMetaClass> businessActivityBinMetaClassList) { List<Long> srmMetaClassIdList = new ArrayList<Long?(); if(businessActivityBinMetaClassList [...]

Continue reading »

I’ve “forked” the Grails PayPal Plugin…

I’m currently completing the finishing touches on a new e-commerce site for my wife’s stationary business. We decided a long time ago to use PayPal for all of the payment processing since we’ve had a great experience using it for our eBay selling. About a year ago Graeme Rocher polished off the last release of [...]

Continue reading »

Joel’s BuilderBuilder in Groovy

Joel Neely started a series of posts over the weekend detailing a proposed exploration of what Functional Programming means “to me as a practicing OO software developer?” The task at hand is to look at the generation of Data Transfer Objects which include a static inner class that functions as a builder. Since I’m exploring [...]

Continue reading »

Groovy: Post to a URL

If you’ve ever worked with the brilliant Recaptcha service, you’ll know that their REST API requires an HTTP POST rather than a GET. As I had only used GET requests thus far, I googled around and found a pretty easy solution: private def evaluateCaptcha(def remoteIp, def challenge, def response) { def config = recaptchaService.getRecaptchaConfig() def [...]

Continue reading »

Grails, Prototype, Script.aculo.us – Persistent Grid Sorting Goodness

Ever wanted to do drag-n-drop sorting of a grid of images on a page and persist it? Here’s my solution using Grails, Prototype, and Script.aculo.us. Basically what prompted this was the need for my wife to be able to sort the various product images that she had on a screen at any given time in [...]

Continue reading »

LOTY Time Again: Scala or Clojure?!?!

In 2007 I established several professional development goals (and later reported my progress on these), one of which was to learn Groovy and Grails. This goal stemmed from the continually referenced idea from The Pragmatic Programmer to “learn a new language every year.” This idea has become so ubiquitous that it even has it’s own [...]

Continue reading »

Deploying Grails with Groovy

Interesting title, eh? Maybe this one will make it through Glen’s filter at GroovyBlogs.org. On to the meat. I’ve been steadily working on a couple of Grails applications, one being the website for the Memphis JUG, and another being the e-commerce site for my wife’s soon to be launched designer stationery business. Just like your [...]

Continue reading »

Need a Textile engine? Look no further than Plextile!

In finishing up the first release of JUG Nexus, the open source engine (http://github.com/mstine/jug-nexus/tree/master) behind the new Memphis JUG website, I needed to put a good Textile engine in place. I really don’t care for writing actual HTML in a content management system, and JUG Nexus being a lightweight CMS, I wanted a lightweight markup [...]

Continue reading »

Grails 1.0 Released!

Grails, by far my favorite of the JVM dynamic language frameworks, was released this morning, with a snazzy, new, “Web 2.0 style” website to boot. Congratulations Graeme and company on all of your hard work!

Continue reading »