ICEfaces®Getting Started GuideContents Copyright ii About this Guide iii Chapter 1 Introduction to ICEfaces 1 Chapter 2 Configuring Your Environment for ICEfaces 3 Prerequisites 3 Java 2 Platform, Standard Edition 3 Ant 4 Tomcat 4 Web Browser 5 ICEfaces 6 Chapter 3 Running the ICEfaces Sample Applications 8 AuctionMonitor 9 AddressForm 10 Component Showcase 11 Chapter 4 ICEfaces Tutorial: The TimeZone Application 13 Overview of the TimeZone Application 15 Step 1 - Basic JSF TimeZone Application 15 Creating a JSP Page with Standard JSF and HTML Tags 15 Creating the Backing JavaBean (TimeZoneBean.java) 17 Binding the Bean to the JSP Page 23 Configuring the Web Application 24 Building and Deploying timezone1 25 Step 2 - Integrating ICEfaces 26 Turning JSP into JSP Document 26 Registering ICEfaces Servlets 26 Building and Deploying timezone2 27 Step 3 - Dynamic Updating-Make the Clocks Tick 28 Enhancing the TimeZoneBean 28 Configuring ICEfaces for Concurrent Views 31 Building and Deploying timezone3 31 Step 4 - Dynamic Table Rendering 32 Modifying timezone.jspx 33 Modifying TimeZoneBean.java 36 Modifying TimeZoneWrapper.java 37 Building and Deploying timezone4 38 Step 5 - Applying Styles 39 Adding a Style Sheet to the Application 39 Adding Images to the Application 39 Implementing Styles 39 Building and Deploying timezone5 43 Step 6 - Integrating Facelets 44 Facelets Dependencies 44 Configuring for Facelets 44 Change Web Files from JSP Document to Facelets 45 Building and Deploying timezone6 45 Step 7 - Capitalize on Facelets 46 Putting the TimeZoneBean in Charge 47 Adding New Properties 47 Updating TimeZoneBean.java 48 Building and Deploying timezone7 49 Chapter 5 ICEfaces SessionRenderer Tutorial: Easy Ajax Push 51 Overview 51 Tools and Environment 52 Creating the Beans 52 Counter.java 52 ApplicationCounter.java 53 Define Managed Beans 53 Creating the Pages 54 Configure Facelets Support 54 Create the Page 55 Create the Descriptor (web.xml) 56 Running without Ajax Push 58 Adding Ajax Push with SessionRenderer 59 SessionCounter.java 60 Adjust the Managed Bean Description 60 SessionRender for Ajax Push 61 Running with Ajax Push 61 Chapter 6 ICEfaces Design Decisions - Using ICEfaces in Your Project 62 Choosing your Markup: JSPs or Facelets 62 Asynchronous vs. Synchronous Update Mode 62 JSF 1.1 vs. JSF 1.2 63 Integration with 3rd Party Frameworks 63 Integration with 3rd Party JSF Components 63 Special Considerations for Portlet Development 64 Application Server Support 64 Client Browser Support 65 Desktop Browsers 65 Mobile Browsers 65 Using ICEfaces with IDEs 65 Index 66