UltraLightClient Code Community
[ start | index | login ]
Overview > Computer Shopping Application

Computer Shopping Application

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.

ULCShopDemo

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

  1. Extract the Zip-File and include the content in your favourite IDE
  2. If not yet done, obtain the >>ULC Release and an >>ULC license
  3. Place the ulckey.txt in the resources/develop and the deployment-ulckey.txt in the resources/prod directory
  4. Open the build.xml file and edit the ulc.release.dir property to point to your ULC installation
  5. Use the ant -f build.xml fetch-ulc-release command to copy the required ULC libraries into the Computer Shopping Application project tree
  6. Use the ulcshop.launcher.ULCShopDemoDevelopmentRunner class to start the Computer Shopping Application from your IDE
  7. 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
  8. Start either the Applet or JNLP client from the index page on http://<host>:<port>/ULCShopDemo
  9. 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

no comments | post comment
labels
attachments
ULCShopDemo.jpg (62394)
ULCShopDemo.zip (2531683)
Created by christian. Last edited by admin, one year and 310 days ago. Viewed 11,248 times. #16
[diff] [history] [edit] [rdf]
snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt