Book Image

JBoss RichFaces 3.3

By : Demetrio Filocamo
Book Image

JBoss RichFaces 3.3

By: Demetrio Filocamo

Overview of this book

<p>JBoss RichFaces is a rich component library for JavaServer Faces and an AJAX framework that allows easy integration of AJAX capabilities into complex business applications. Do you wish to eliminate the time involved in writing JavaScript code and managing JavaScript-compatibility between browsers to build an AJAX web application quickly?<br /><br />This book goes beyond the documentation to teach you how to do that. It will show you how to get the most out of JBoss RichFaces by explaining the key components and how you can use them to enhance your applications. Most importantly, you will learn how to integrate AJAX into your applications without using JavaScript but only standard JSF components. You will learn how to create and customize your own components and add them to your new or existing applications.<br /><br />First, the book introduces you to JBoss RichFaces and its components. It uses many examples of AJAX components which, among others, include: Calendar, Data Table, ToolTip, ToolBar, Menu, RichEditor, Drag'n'Drop. All these components will help you create the web site you always imagined. Key aspects of the RichFaces framework such as the AJAX framework, skinnability, and CDK (Component Development Kit) will help you customize the look of your web application. As you progress through the book, you will see a sample application that shows you how to build an advanced contact manager. You're also going to be amazed to know about the advanced topics you will learn like developing new components, new skins, optimizing a web application, inserting components dynamically using Java instead of XHTML, and using JavaScript to manage components. This book is more than a reference with component example code: it's a manual that will guide you, step-by-step, through the development of a real AJAX JSF web application.</p>
Table of Contents (18 chapters)
JBoss RichFaces 3.3
Credits
About the Author
About the Reviewer
Preface
Index

Creating the project


In order to generate our project, first let's create a directory to contain our component (it can contain more than one) and let's call it, for example, sandbox.

Inside the new directory, let's create a file called pom.xml and insert this code:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/  xsd/maven-4.0.0.xsd"> 
    
    <modelVersion>4.0.0</modelVersion> 
    <groupId>org.mycompany</groupId> 
    <artifactId>sandbox</artifactId> 
    <url>http://mycompany.org</url> 
    <version>1.0-SNAPSHOT</version> 
    <packaging>pom</packaging> 
    <dependencies>
        <dependency>
            <groupId>javax.servlet</groupId> 
            <artifactId>servlet-api</artifactId> 
       ...