Lux Log

December 22, 2007

Part 3 of 3 Basic web app completed with validation elements

Filed under: Java, NetBeans — Luk @ 6:06 am

Up til now, in part 1 and part 2 there was hardly any validation. Everything was of type String, and the only constraint we implemented was for some fields to be required. That’s not very real world. Let’s make our application more robust by adding some extra constraints such as checks on correct date and e-mail formatting, a check on whether the provided username is unique and checks on min and max length of strings. For this purpose we are using JSF validation (mainly). (more…)

December 17, 2007

Part 2 of 3 Basic web app extended to full CRUD

Filed under: Java, NetBeans — Luk @ 8:49 pm

In this second part we’re extending the application we’ve set up in part one to support updates and delete actions for existing records. Still, the result will be far from production ready but the page views I got since yesterday encouraged me to continue writing. (more…)

December 15, 2007

Part 1 of 3 Basic example web app with Glassfish, NetBeans 6.0, JSF and EJB3

Filed under: Java, NetBeans — Luk @ 3:14 pm

Keywords: DAO, MVC, JSF, Session Facade, NetBeans 6.0, EJB3, GlassfishV2

If you’re looking for a walkthrough on setting up a basic web application using the DAO / MVC patterns with Glassfish V2 you’ve come to the right place. Here’s a HOWTO.
(more…)

Create a free website or blog at WordPress.com.