In this
chapter we created an AjaxTags web application to validate an input form
for creating a catalog entry.
7 Ajax with JSF-Ajax4jsf
7.1 Introduction
JavaServer Faces (JSF) provides a set of components to develop user
interfaces (UIs) for J2EE applications. We have used HTML components
in the previous chapters. Ajax may also be used with JSF UI components
using JBoss Ajax4jsf. Ajax4jsf is an open source framework that adds
Ajax functionality to JSF applications without requiring any JavaScript.
JDeveloper provides a Component Palette for JSF Core and JSF HTML
components from which components may be added to a JSF page. In this
chapter we shall create an input form for a catalog entry using JSF
Components provided in JDeveloper and add Ajax to the input form using
Ajax4jsf.
7.2 Overview of Ajax4jsf
Ajax4jsf provides a component library that may be used in a JSF page for
page-wide Ajax functionality. Ajax4jsf supports action and value change
listeners, and server-side validation and conversion facilities of the JSF
framework. Ajax4jsf also supports management of static and dynamic
resources such as images, and CSS stylesheets. Ajax4jsf also supports the
Facelets framework. To use Ajax4jsf, one would need the following: JDK
1.4-1.6, JSF 1.1 or 1.2, a J2EE application server such as WebSphere 5.1-6
or WebLogic 8.1-9.0 or OC4J 10.1.3, and browser that supports
XMLHttpRequest such as Internet Explorer 6+ or Netscape Navigator 6+.
Pages:
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126