From the monthly archives:

March 2008

grails-selenium-0.4

March 21, 2008

This information is out of date - please see http://www.grails.org/Selenium+plugin
Version 0.4 of the grails selenium plugin is now available.
This version adds:

scripts to create and run tests
a postResults url for displaying the final test results

Details are as follows:
run-selenium
Runs Selenium in the specified browser.
Specify the path to your browser as a command line parameter i.e.
grails run-selenium /usr/bin/firefox
or, [...]

Read the full article →

grails-jsunit-0.1

March 21, 2008

This information is out of date - please see http://www.grails.org/jsUnit+plugin
grails-jsunit provides an easy and convenient way to utilize the JsUnit framework to your grails application. JsUnit allows you to unit test JavaScript functions in a similar way to using JUnit for Java.
To install the plugin, use:

grails install-plugin http://www.javathinking.com/grails/grails-jsunit-plugin/0.1/grails-jsunit-0.1.zip

This plugin adds the following new scripts:
create-jsunit-test
Generates a [...]

Read the full article →

Firefox profiles

March 16, 2008

If you share a login with someone else (ie. family) Firefox profiles can be very useful. Likewise, if you are a developer and you have several different contexts or modes of operation, profiles can make life a lot easier.
I use them at home with family members - you can set each person up with their [...]

Read the full article →

Looking for IT work in Australia? JobReel.com.au!

March 16, 2008

I’m currently looking for contract work, and all of the usual places offer vague job descriptions that makes it hard to differentiate one from the other. This makes it hard to decide which ones to apply for, and almost always mean that you end up applying for jobs that are totally inappropriate.
Now there is JobReel.com.au [...]

Read the full article →

Ohloh.net

March 15, 2008

I just discovered http://www.ohloh.net/ - this is a great site, I think the easiest way I can describe it is by saying it is like linkedin.com, but based on opensource projects. You can create an account, and then add opensource projects to your ’stack’.
You can:

see geographically where people with a particular project on their [...]

Read the full article →

grails-selenium-0.3

March 13, 2008

Version 0.3 of the grails selenium plugin is now available.
This version:

Adds GSP support for writing tests
Fixes bug where hidden directories were shown as suites
Fixes bug on windows with invalid URIs to html tests

To use GSP to generate the tests, use the <sel:test> tag, followed by nested <sel:row> tags.
<sel:row> can take either:

one ‘line’ attribute where [...]

Read the full article →

Regression testing grails plugins

March 12, 2008

For regression testing the grails plugins I’ve released, I have a shell script that:

cleans up any previous runs
packages the current code for the plugin OR downloads a release from my web site
creates a new grails app
copies preprepared resources into this new grails app
installs the plugin

Now all I have to do is run the application and [...]

Read the full article →

grails-jttaglib-0.1

March 12, 2008

grails-jttaglib plugin is a small collection of convenience tags.
The sample code below assumes you have a domain class that looks like this:

class Book {
String title=”my new book”
String content

static def constraints = {
title(maxSize:20)
content(maxSize:200)
[...]

Read the full article →

Allowing tabs in a text area

March 10, 2008

In addition to controlling the maximum number of characters in a text area, I also want to allow the user to enter tabs. But default, hitting tab would move out of the text area to the next control on the page.
Overriding this behavior can be done by using the onKeyDown event controller so you can:

[...]

Read the full article →

Allowing or denying self registration with grails-acegi plugin

March 10, 2008

The grails-acegi-0.2 plugin is great - it adds login, user management, and user registration capabilities to your application in seconds. However, I’m building a web application where I want to be able to let the deployment team decide whether users can register themselves or alternatively, have an administrator create users. I want provide these settings [...]

Read the full article →