ICEFaces Demo Installation

This page is ** under construction **


Acknowledgement

We gratefully acknowledge the contribution of Cesar Quinteiro, a valued partner at Intergal with many years of experience in transaction business logic.  Cesar built the demo shown here.

Prerequisites

These instructions are for Eclipse EE (Indigo - 3.7); you can alter them for your IDE.

ICEFaces

First, acquire ICEFaces 2.1.  As of this writing, get ICEfaces-2.1.0.BETA2-Eclipse-3.7-3.6-plugins.zip from the ICEFaces download page

Automated Business Logic

Next, you will need to acquire Automated Business Logic.  It is available from the Downloads page.  

Although we recommend you complete the installation instructions, it is sufficient to simply unpack the zip in order to run this demo.  This will create a folder called AutomatedBusinessLogic, which can be used as a workspace.  It contains the abl project used below, and the ThirdParty folder also used below.

Project Creation

Follow the steps below to create the project.

Create workspace

Create a new Eclipse workspace.

Add abl (from main install)

In your new workspace, add the abl project specifying your AutomatedBusinessLogic/abl folder.

Add BusLogicDemoICEFaces project

Start by downloading the demo archive from ABL's web site. Windows users will typically use the Zip archive.  Unzip the project into the workspace, and use Eclipse to Import > Existing Project; select the unzipped project.

Configure the Database Location

Edit the HibernateFactory class, and edit the realPath to match your project location.



Add Tomcat server

In the Server View, new > Server > Tomcat V7 and select the Tomcat installation under your AutomatedBusinessLogic/ThirdParty folder.

Then, add the BusLogicDemoICEFaces project to the new server.

Get JSF 2 Mojarra

Right click BusLogicDemoICEFaces to access Properties > Project Facets > Java Server Faces.  Click Download Library (shown at right), and select the entry show for ICEFaces.  The screen should appear as shown below after you have made the selection; click Finish to install JSF.



Increase JVM Memory

Locate the Launch Configuration for Tomcat, and edit it.  Select the Arguments tab, and append the following to the VM arguments:

-XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M


Project Execution

Start the Tomcat server, and lick the following link to run the project: 

Try paying / unpaying an order, changing a line item quantity / product, deleting a Line Item, etc.  Observe the console log to see which rules fire.

Comments