Archive for the 'java' Category
Recently the Google Collections Library came to my attention. The Google Collections Library is a suite of new collections and collection-related goodness for Java 5.0, brought to you by Google.
Since I’m a frequent user of apaches’ commons-collections library I wondered what the difference is.
From browsing the API and FAQ it seems that:
It fully based [...]
While setting up JAXB2 for converting object graphs to XML I came across a not-so-nice part of the annotations specification. While looking for a way to define a package level annotation (never needed to do this before) I found the solution a bit surprising:
To define a package-level annotation one has to create a file called [...]
Quick take at Wicket Web Beans
2 Comments Published by peter September 13th, 2007 in java, wicket, wwb.Recently a really interesting wicket extension emerged: Wicket Web Beans (WWB).
Wicket Web Beans (WWB) is an Apache Wicket component toolkit for displaying and editing POJOs that conform to the JavaBeans specification. Web pages are automatically generated based on bean properties and certain conventions. If necessary, the layout, editability, and actions of these pages can be [...]
Presentation: Introduction to Spring MVC
0 Comments Published by peter September 10th, 2007 in java, spring, spring mvc, workshop.I was asked to do a series of presentations and workshops regarding Spring MVC at the HvA. Last Friday I started off with a presentation and some live coding examples.
Although the students didn't have much experience with Spring or Java web development I think I did manage to give them some ideas about what Spring [...]
Unittesting e-mail sending using Spring
2 Comments Published by peter August 29th, 2007 in e-mail, java, junit, smtp, spring, wiser.In previous projects I mostly skipped writing tests for sending mail. Mostly due to the fact that there is a dependency on a working SMTP server. This time I decided to invest some time in finding a solution for this problem.
It didn't have to look very far to find Wiser. Wiser is a very simple [...]
Since working with, or creating WebServices is something webdevelopers will probably do regularly (or stumble upon in the very near future) I decided to have a look at Grails' support for SOAP.
First thing I wanted to see was how to expose a Grails service via Soap. Due to the excellent documentation at the Grails website [...]
Grails - Render method & Markup builder
0 Comments Published by peter August 26th, 2007 in grails, groovy, java.During Graemes' demo of Grails at javasummercamp he briefly pointed out the fact that one can implicitly use the Groovy MarkupBuilder (Similar to the Markaby DSL for Ruby) within the render method of an action for generating markup.
Which makes writing an RSS feed for you application really easy:
PLAIN TEXT
GROOVY:
def feed = {
def results [...]
Proficts’ Javasummercamp on Rails/Grails/Java
1 Comment Published by peter August 26th, 2007 in grails, java, jruby, rails.Yesterday I visited Proficts' Java Summercamp called "Rails en Grails en Java: Nieuwe talen op de JVM". Which in essence should have been a small seminar
on the topic of new languages on the JVM. In reality Charles Nutter presented JRuby, and its' current state and Graeme Rocher did a presentation on Groovy and Grails.
Both presentations [...]
IntelliJ IDEA 7m2: Groovy/Grails support
0 Comments Published by peter August 15th, 2007 in grails, groovy, intellij, java.From the corner of my eyes I noticed something in the latest IntelliJ release: a Groovy and Grails plug-in.
The screenshots on the Jetbrains website showing of Smart type inference, Cross-resolution between Groovy and Java classes and Smart code navigation assistance with structure view, class and usage make me want do download and use IntelliJ [...]
After going through the Grails documentation I decided to get my hands dirty and actually try and build something. 'Todo' style applications aren't too interesting, but quite useful to test basic stuff.
Getting started
After installing Grails I moved on to creating a new application:
grails create-app ptodo
This creates a fully working webapplication, very similar to the basic [...]


















