Wednesday, July 1, 2009

JBoss Seam Archetype - now with ICEfaces

Last week I visited Jazoon - and had a great opportunity to see several impressive demos of ICEfaces! Of course I had to immediately get my hands on it, and started to integrate ICEfaces in the JBoss Seam Maven archetype (as described in my previous post).

You can give it a spin by starting a shell and running Maven with the Archetype plugin:

>mvn archetype:generate -DarchetypeCatalog=http://tinyurl.com/jbsarch -DajaxLibrary=icefaces
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
...
Choose archetype:
1: http://tinyurl.com/jbsarch -> jboss-seam-archetype (Archetype for JBoss Seam Projects)
Choose a number: (1): 1
Define value for serverDir: : [your JBoss 5 server location]
Define value for groupId: : [your groupId]
Define value for artifactId: : [your artifactId]
Define value for version: 1.0-SNAPSHOT: : [your version]
Define value for package: : [your package]
Confirm properties configuration:
serverType: jboss5
ajaxLibrary: icefaces
...
Y: : y
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
...


Make sure you don't misspell "icefaces", this will otherwise screw up the application. No input validation in Maven Archetype yet, but I started looking into it ;-)

Again, change to the project directory and build the project:

>mvn package

Now this also executes a sample unit test (fingers crossed it works this time ;-) - thanks to Oscar for the feedback!

Have fun with it! Anybody mind contributing a decent layout template?

5 Kommentare:

micha said...

I assume you attended one of my talks about ICEfaces at Jazoon, right? If so... thanks for the feedback... :-)

Thomas said...

Salü Micha! Actually I attended both talks ;-) - great stuff, indeed!

Balz said...

I can only confirm that the ICEfaces architecture fully convinced me when I was at JavaOne... More to come from our side :-)

Tom Sawyer said...

Thanks for the great job posted here.

Have you ever tried DBUnit and MySQL in the application? please advise how to do it. According to my testing, MySQL cannot be configured in the Bootstrap and there is few info. in seam forum.

As for DBUnit, I use the DBUnit version 2.2 provided in seam examples, it does not work either: BinaryUri cannot be initiated.

Thomas said...

Is this a general problem with Seam (does it work with a seam-gen project) or just related to this setup? I haven't tried DBUnit so far, I usually run an in-memory HSQLDB in combination with import.sql.

For a general problem, the Seam forum might be the better place to ask.