Getting Started with the ICE Components

Table of Contents

Adding the ICE Components to Your Application

To configure your application to use the ICE Components, complete the following steps:

  1. Setup the ICEfaces core framework if you have not already done so by following the steps in Getting Started, which pertain to using ICEfaces with any application.

  2. Add the ICE Components icefaces-compat.jar to your application classpath.

  3. Add the required dependent libraries to your application class path:
    Libraries servlet-profile : Tomcat
    web-profile : JBoss 6, Glassfish 3
                             Y                                  Y
                             Y                                  Y
                             Y                                  Y
                             Y                                  Y

  4. Add the required entries to the web.xml file:
    <?xml version='1.0' encoding='UTF-8'?>
    <!-- Have the proper schema version -->
    <web-app version="2.5"
        <!-- More efficient, in an AJAX environment, to have server side state saving -->
        <!-- HTML comments become components unless they're stripped -->
        <!-- If you're using ice:gmap component, you'll need your own key here -->
        <!-- The JSF servlet -->
            <servlet-name>Faces Servlet</servlet-name>
        <!-- Many of the ICEfaces Components make use of the Resource Servlet -->
            <servlet-name>Resource Servlet</servlet-name>
        <!-- The standard mapping. Can use other extensions, or path mappings -->
            <servlet-name>Faces Servlet</servlet-name>
        <!-- These specific mappings are necessary for the Resource Servlet to function properly -->
            <servlet-name>Resource Servlet</servlet-name>
            <servlet-name>Faces Servlet</servlet-name>

  5. Add the ICE Components XML namespace to any pages you want to use components on:
    <html ... xmlns:ice="">

You are now ready to begin adding ice: component tags to your page.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

© Copyright 2021 ICEsoft Technologies Canada Corp.