Posts

JSF 2.0 with Spring 3 and Spring Security 3 on Google Application Engine

In this post I'm going to show a simple fully integrated CRUD style application working on Google Application Engine. The technologies used are : JSF 2.0 - Mojarra 2.0.2 Spring 3.0.0.RELEASE Spring Security 3.0.0.RELEASE Hibernate Validator 4.0.2.GA as reference implementation of JSR 303: Bean Validation AspectJ 1.6.7 Groovy and the gmaven-plugin You can see a live demo at : http://sandcode.appspot.com UPDATE(22 August 2010) You can compare with : http://deltaset-demo.appspot.com and see the project created based on the ideas in that post : http://www.deltaset.org The application is build with Maven 2.2.1 For local execution you would need Google App Engine SDK 1.3.0 1.3.1 The archetype was updated on 11 February 2010, so that works for latest Google App Engine - 1.3.1 If you want to play and customize it you would need to have installed and configured Java, Maven and Google App Engine SDK Choose gae-archetype after running : mvn archetype:generate -DarchetypeCatalog=http://sand...

JSF 2.0 with Maven 2 plugins for Glassfish v3, Jetty and Tomcat

In this post I'm going to demonstrate how JSF 2.0 "Hello World" application could be developed with the Maven 2 plugins for Jetty, Tomcat and Glassfish v3. The application consists of two pages and request scoped managed bean. The first page ( hello.xhtml ) asks the user "What's your name?", validates the input , then the second page ( response.xhtml ) greets the user with "Hi". The two pages share common layout defined in template.xhtml and request scoped managed bean HelloWorld.java exposed under name "hi". The titles of the pages are set with UL expression #{hi.greetFrom('greeting passed as parameter')} . The template loads its css and also one image file with the new ResourceHandler API. Prerequisites: * Basic knowladge of Java and Maven 2. * Installed Maven 2 ( http://maven.apache.org ). The sample was tested with version 2.2.1 Quick start: The source can be downloaded from here . or could be checkout with subversion fr...