Its been a while since I put up some stuffs in here, yet not to fear since I’ve just been drafting my writings. For this post, I’ll be going through my first hands- on experience in using ICEFaces Web Framework. You can view ICEFaces very details description here: Click Me.
For my hands-on experience, I tried putting up a simple Inventory Input Form like this:
The business case here is that the user must have the ability to create inventory items, the user must be able to automatically see the data in the table below after creating a new item.
Inserting a new Data using: Ice:Popup
A pre-defined (or in technical term, intrinsic function) libraries are included with the Framework. Its basically a new Web Framework that completely uses the Web 2.0 concepts as well as Ajax technologies to refine and define the user experience.
The popup dialog below is actually just a tag library call from the page itself. Pre-defined validation occurs (see those * there). After saving the entry, the dialog closes and the table underneath will automatically re-rendered to show the newly added entry.
Delete and Edit:
An entry will have buttons that will let user delete or edit data. The Edit button will re-use the popup dialog and pass the values to it.
- Apache Tomcat 7 – I’m using Tomcat 7 as it supports the latest JEE6 Reference Implementation libraries required to run the application.
- MySQL Database – The Enterprise Ready Toy Database
- Eclipse EE with IceFaces Installed – JPA Libraries are pre-installed in JEE Eclipse.
To save you from trying to create this basic stuff, heres the link to the WAR file I created (includes the SQL File as well) along with the necessary libraries to run the application: POSv1.war
Just put it in your Apache Tomcat 7 webapps folder, create the database with a user: root / <no password> and your good to go!