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

Ajax sup0port


a4j:ajaxListener

The component has the same functionalities as that of <f:actionListener> or <f:valueChangeListener>, but it works in an Ajax container.

a4j:actionparam

It combines the functionality of <f:param> and <f:actionListener>.

a4j:commandButton

As we have seen in the previous paragraph, the component is very similar to the <h:commandButton> component, with built-in Ajax support.

a4j:commandLink

The <a4j:commandLink> component is very similar to the <h:commandLink> component, with built-in Ajax support.

a4j:form

It is very similar to <h:form>, with more Ajax capabilities (such as Ajax submission by default).

a4j:htmlCommandLink

It is same as the <h:commandLink>, but with correct link generation for RichFaces framework support.

a4j:jsFunction

This component allows the user to invoke the server-side data and return it in a JSON format to use in client JavaScript calls.

a4j:poll

As we have seen, the <a4j:poll> component allows periodical sending of Ajax requests to a server and is used for a page updating and/or action calling within a specified time interval.

a4j:push

The <a4j:push> simulates "push" data periodically, performing Ajax requests to the server.

a4j:region

This component defines an area that is decoded on the server and updated after Ajax submission.

a4j:status

This displays the current Ajax request's status when the Ajax request is in process or finished.

a4j:support

The <a4j:support> component adds Ajax support to an existing JSF component.