Monday May 14, 2007

Ajaxifying JavaServer Faces Components

For those of you who were not able to attend our JavaOne 2007 hands-on lab, the lab is now available online at http://developers.sun.com/learning/javaoneonline/j1labs.jsp?track=8&yr=2007.

The lab starts off showing how to use dynamic faces Ajax zones to easily enable plain old JavaServer Faces components to send Ajax requests, and, in turn, dynamically update other components with the Ajax response. You also use an Ajax Transaction to continually poll the server. When you have completed the exercise, you have a simple chat room, like the one shown above. In the instructor-led lab, we had the web app running on the demo machine so you could watch us chatting with the lab attendees. The lab file contains an older version of the dynamic faces component library. To get the more recent one, see Installing the Currency Trader Sample Application at the NetBeans Visual Web Application documentation page.

In the second part of the lab, Winston and the Andersons show how to build a JavaServer Faces component from scratch, and use dynamic faces internally to Ajaxify the component.

The final section shows how to leverage jMaki to create a JavaScript component from one of the popular frameworks into a JavaServer Faces component. You can learn more about jMaki at ajax.dev.java.net and about the componentized widgets at widgets.dev.java.jet.

Sunday May 06, 2007

Dynamic Faces Component Library Makes it Easy to Ajaxify JavaServer Faces Components

One of the things I have been working on for the last few months is writing about the Visual Web Pack Dynamic Faces component library that has been under development, and a very cool chat program that Matt designed to demonstrate this technology.

The Dynamic Faces technology, which comes from the JSF Extensions project, makes it extremely easy to Ajaxify plain old JavaServer Faces components.

The Visual Web Pack Dynamic Faces component library is now available from the NetBeans Update Center, along with another sample application that Matt wrote. To learn how to obtain and install the library and sample application, see Installing the Currency Trader Sample Application, available from the NetBeans Visual Web Pack documentation page.

If you are attending JavaOne 2007, and you are interested in Dynamic faces, here are some sessions, labs, and BOFs to check out:

  • BOF-6825: Testing Web 2.0 Features, Using Real-World Applications by Prakash Narayan and Ed Burns
  • TS-9511: Using Ajax With POJC (Plain Old JavaServer Faces Components) by Craig McClanahan and Matthew Bohm
  • S288058: Building Ajax-Enabled JavaServer Faces Components and Web Applications With jMaki, Dynamic Faces, and the NetBeans IDE by Greg Murray, Craig McClanhan, Ludovic Champenois, and Roberto Chinichi. This presentation is at CommunityOne which is a free event.
  • Lab-4460: Building Ajax-Enabled JavaServer Faces Components and Web Applications with jMaki, Dynamic Faces, and the NetBeans IDE, by me, Craig McClanahan, Matthew Bohm, Winston Prakash, and the Andersons.

Also, come by the NetBeans Visual Web Pack booth at the JavaOne pavillion to see demos of how easy it is to use the Dynamic Faces technology. Tell them Chris sent you .

About

divas

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today