Saturday, January 17, 2009

Testing new SyntaxHighlighting Plugin

This is a simple post to test syntax highlighting


public void printHello(){
System.out.println("Hello World");
}


Let's try some Groovy code now


class MyController {
// these will be injected by Griffon
def model
def view

void mvcGroupInit(Map args) {
// this method is called after model and view are injected
}

/*
def action = { evt = null ->
}
*/
}


I hope it works

Got it working, . . .

Keys to getting it working:
http://fahdshariff.blogspot.com/2008/07/syntax-highlighting-code-in-webpages.html
http://code.google.com/p/syntaxhighlighter/wiki/BloggerMode

Borrowed Groovy Highlighting from: http://grails.org/SyntaxHighlighter+Plugin

Sunday, January 11, 2009

CodeMash 2009 - Griffon in Front Grails in Back

I uploaded the slides from my Griffon in Front Grails in Back session at CodeMash 2009.

For Those of you who attend the talk, I enhanced the counting application based upon your questions. The code in the counting example now includes @bindable.


Slides: http://www.slideshare.net/jshingler/griffon-in-front-grails-in-back-presentation
gCollabTodo Code: http://github.com/jshingler/gcollabtodo/tree/master

Friday, January 9, 2009

CodeMash 2009 - Groovy and Grails Precompile

Just uploaded the Slides and Code from the Precompile Presentation that Chris Judd and I did at CodeMash 2009 on Groovy and Grails.

The presentation went really well.

Slides: http://www.slideshare.net/jshingler/gg-code-mash2009-20090106-presentation/
Code: http://github.com/jshingler/codemash2009precompile/tree/master

Thursday, November 27, 2008

Griffon Collab Todo Example

Okay, it is still a work in progress, . . . But, I have pushed the Griffon Collab Todo application to Github (http://github.com/jshingler/gcollabtodo/wikis). Griffon Collab Todo is a reimplementation of the Swing Client found in Chapter 13 of Beginning Groovy and Grails using Griffon.

The application is a Griffon (Groovy & Swing) client to a Grails Web Application. It communicates with the Grails application using a JSON Restful approach.

While it is still a work in progress, . . . It does give you an idea of they types of things you can do with Griffon.

Stay tuned, as time permits, I will blog more info on my experiences with Griffon. BTW, it has been fun.

Danno, Andres, and James have done a Great Job with Griffon!

Monday, November 24, 2008

Installing Griffon Snapshot

Griffon is to Desktop as Grails is to Web Apps.

Here are some instructions for installing the latest Griffon Dev Snapshot on Windows.

Assumptions: java is already installed.

1. Download the source (http://svn.codehaus.org/griffon) using your favorite Subversion tool. I like SmartSVN (http://www.syntevo.com/smartsvn)
2. cd download\core\trunk
3. run ant to build the code
4. create an installer. ant create-installer-izpack (look in ant\build\installer.xml for other options)
5. execute trunk\dist\griffon-installer-0.1.SNAPSHOT.jar (java -jar griffon-installer-0.1.SNAPSHOT.jar)

NOTE: Depending upon when you download the source, there is an error in the windows installer. It puts a PATH entry in the User variables that contains ${OLD_PATH_VALUE}. This creates a problem. A work around is to delete the PATH entry in User Variables and add the appropriate info to the System PATH variable. You should also make sure that GRIFFON_HOME has been defined.

Sunday, November 2, 2008

Griffon Collab-Todo

Coming Soon! In Chapter 13 of "Beginning Groovy and Grails" I built a Swing GUI using SwingXBuilder that interacted with a Grails RESTFul Web Service. I am finishing the process of creating a Griffon version of the same application. It is starting to look good.



I will be uploading the source to the Beginning Groovy and Grails website in the near future. Stay tuned.

Thursday, October 23, 2008

Aug 12 COJUG - Groovy / Grails Presentation

Groovy and Grails have given us the ability to leverage the strength of the Java Platform (and Eco System) and the productivity of "Convention over Configuration" to construct websites. But what if the User Interface requirements of your new application is best solved with the type of interaction a desktop application provides?

Groovy brings the same productivity gain to desktop applications that Grails brings to web applications. This session will use the Groovy SwingBuilder and popular open source libraries to build a desktop application to interact with a Grails backend.

Here is the link to the Groovy and Grails presentation I did on August 12, 2008.

COJUG 8/12 Groovy / Grails Presentation