The ICEfaces distribution comes with example applications that illustrate the key features of ICEfaces as well as providing source code and guidance about configuration and library dependencies.
The examples that come bundled with ICEfaces can all be found under [icefaces.install.dir]/icefaces/samples. Under that directory the examples are organized as follows:
/compat: The compat examples illustrate the use of the original ICE Components suite running on the latest ICEfaces framework. The main example is AuctionMonitor - an online auction simulator implemented using the compatible ICE Components, the ICEfaces core framework, and Ajax Push. This sample demonstrates how older ICEfaces applications can be easily migrated to the latest versions of ICEfaces.
/core: The core examples use only standard JSF 2 components enhanced with the core ICEfaces framework. As such, they require fewer library dependencies. The main example is Auction - an online auction simulator implemented using JSF standard components, the ICEfaces core framework, and Ajax Push. This sample demonstrates how ICEfaces can provide automated-ajax and push update capabilities to standard JSF applications with minimal changes.
Each example has a pre-configured .pom file that can be used to create the requisite .war file for the application. To do so:
The sample .pom files offer a choice of profiles that allow you to build the .war file the way you like. The profiles include the ability to include (servlet) or exclude (web) the JSF libraries from the .war file as well as choose which JSF implementation (Mojarra or MyFaces) to use. The profiles are:
By default, the examples are built using the servlet profile which means each .war file includes the relevant version of the Mojarra JSF libraries. To build using a profile other than the default:
The resulting .war file and other generated files can be found in the /target directory of the example.
You can find more information on Portlets and the examples under Portlet Development. For specific instructions on how to use Maven to build the portlet examples and include the appropriate portlet bridge, see the section titled Sample Portlet Applications.
© Copyright 2018 ICEsoft Technologies Canada Corp.