Purpose
This contribution illustrates how the Application Template can be used to build a complete, real-life application. It takes the
Application Template and the catalog data from the
Product Catalog sample application and merges them into a new application, the Computer Shopping Application.

The Computer Shopping Application includes the following features / concepts
- reading the product data from an xml data file
- sorting and filtering of the products in the product list table
- detail view for the selected product
- printing of the product details for the selected product
- adding to / removing from shopping cart
- place order for the products in the shopping cart
- drag & drop products from the product list to the shopping cart
- use of enabler concepts for managing enabling/disabling state for specific widgets
- custom rendering of product attributes in the product table (e.g. availability)
- multi-language support
- use of enhanced Look & Feel implementation (JGoodies)
The Computer Shopping Application is available with complete source code, project tree and Ant build script in the Resources section.
Related to
Resources
How to use
- Extract the Zip-File and include the content in your favourite IDE
- If not yet done, obtain the
ULC Release and an
ULC license
- Place the ulckey.txt in the resources/develop and the deployment-ulckey.txt in the resources/prod directory
- Open the build.xml file and edit the ulc.release.dir property to point to your ULC installation
- Use the ant -f build.xml fetch-ulc-release command to copy the required ULC libraries into the Computer Shopping Application project tree
- Use the ulcshop.launcher.ULCShopDemoDevelopmentRunner class to start the Computer Shopping Application from your IDE
- Use the ant -f build.xml war command to create a Web application archive (ULCShopDemo.war) and deploy it in your J2EE-compliant Servlet container
- Start either the Applet or JNLP client from the index page on http://<host>:<port>/ULCShopDemo
- Enhance / customize the Computer Shopping Application for your needs - enjoy!
How it is implemented
The Computer Shopping Application is implemented based on the
Application Template. As catalog data, the XML-based software and hardware product data from the
Product Catalog is used. All implementation details can be found in the source code.
Author
christian