Abstract: This tutorial shows you how to use NetBeans Visual Web Pack 5.5 to build a web application that uses the sample Java BluePrints AJAX Progress Bar component.
NetBeans Visual Web Pack 5.5 works with all supported servers and works with both the Java EE 1.4 and Java EE 5 platforms. This tutorial illustrates the Visual Web Pack features that work with the resources check marked in the following table. For detailed information about the supported servers and Java EE platform, see NetBeans Visual Web Pack 5.5 Installation Instructions.
Application Server
Sun Java System Application Server 9 Tomcat JBoss BEA WebLogic
* Only the Sun Java System Application Server supports Java EE 5
Setting Up the Application
You begin this tutorial by importing the Java BluePrints AJAX components into the IDE. You then create a project and add two files, SimpleTask.java and pb.js. SimpleTask.java simulates a server-side task that is performed in a separate thread. Whenever the user starts (or resumes) the task, the start method in SimpleTask.java spawns a new thread, which alternately sleeps and increments a counter. The file pb.js contains functions that are called by the JavaScript-related properties of the components in the application. These properties include the onComplete and onFail properties of the Progress Bar, the onClick property of the Buttons, and the onSubmit property of the Form.