There are two JavaServer Faces component libraries. One includes components based on JavaServer Faces 1.2 that can be used on a Java EE 5 application server such as GlassFish. The other set has components based on JavaServer Faces 1.1 and can be run on J2EE 1.4-compatible application servers.
Components in Library 1 (which can be used in both the J2EE 1.4 or the Java EE 5) include:
- Auto Complete Text Field: The autoComplete component allows users to do real time auto-completion using AJAX interactions. The component uses managed beans both to configure the advanced properties and to retrieve the resultant completion data.
- Geo-coder Component and Google Map Viewer Component: The MapViewer sample application utilizes two Java Blueprints AJAX components. The GeoCoder uses the Yahoo map service to verify the entered address and to get the exact latitude and longitude. This information is then used by the MapViewer component to render and center the Google map.
- Rating: The Rating JavaServer Faces component allows users to rate items and have the model updated through an AJAX call. The component uses a managed bean to configure the advanced properties as well as the resultant user rating selection.
- PayPal Buy Now: The Buy Now JavaServer Faces wraps the PayPal Buy Now button functionality so it can be easily reused to sell individual items on a web site that can serve JavaServer Faces pages. The main advantage of wrapping the Buy Now button with a JavaServer Faces component is that users can populate various component attributes dynamically by binding them to properties in a managed bean. Specifically, this can save a lot of time when you have hundreds of items to sell through your web site.
Components from Library 2 (which be used only on Java EE 5 solutions such as GlassFish) include:
- PopUp Balloon: The in-screen-popup component consists of a hidden image/table that is shown once the information is retrieved. The border image frames the table that holds the text, giving it a more elegant look. The contents of the in-screen-popup is configurable through the body of the JavaServer Faces tag.
- AJAX FileUpload: The in-screen-fileupload component consists of a form that is uploaded in the background using AJAX through the DOJO libraries. The contents of the in-screen-fileupload form is configured through the body of the JavaServer Faces tag.
- Dynamic Text Label: The Dynamic Text component allows users to edit text in place and have the model updated through an AJAX call. This component looks like a label but may be switched to an editable mode where the contents can be updated using a partial form submit through AJAX without refreshing the page. In the view mode you may not want to display a form field because it is more focused on displaying text which is capable of being edited.
Java BluePrints Solutions Catalog for Java EE 5
Users involved with designing and building an AJAX application on the Java EE will find this catalog, which covers key issues and solutions for common problems, a helpful guide. Various strategies, patterns and design guidelines are provided for each problem. The catalog includes design documents, many small applications, several JavaServer Faces and AJAX components, as well as source code. An early access version of the solutions catalog including the new Java BluePrints AJAX components is now available for download. This set of components works with the GlassFish Java EE 5 application server.
Read More ...