JavaOne:AJAX & JavaServer Faces ties to get stronger

Plans are underway to strengthen links between two key component technologies for web development, AJAX (Asynchronous JavaScript and XML) and JSF (JavaServer Faces).

Share

Plans are underway to strengthen links between two key component technologies for web development, AJAX (Asynchronous JavaScript and XML) and JSF (JavaServer Faces).

The issue featured in a panel discussion at the JavaOne conference in San Francisco which looked at the linkage between AJAX and its attendant JavaScript code work on the client, and JSF, which resides on the server.

Although developer issues remain, such as which AJAX framework to use in Web development, AJAX itself will be better accommodated in version 2.0 of JSF, due in 2008.

JSF 2.0 will feature a small JavaScript library. "It will allow you, at the very least, from your JSF component or from any old piece of JavaScript in the page, to call back into the JSF lifecycle from JavaScript and have it all run and get back to you. It'll enable partial update of the page," said panelist Ed Burns, a senior staff engineer at Sun Microsystems and specification lead for JSF.

Also to be featured in JSF 2.0 is Comet, which offers a programming technique in which an open socket is leveraged to speed up browser requests to the server.

The current version 1.2 of JSF has a small degree of JSF support, with the ability to declare a separate lifecycle for handling AJAX requests, Burns said. Also, a component can be invoked to individually address a row while doing an AJAX transaction.

Sun previously has discussed JSF 2.0 as Project Dynamic Faces, noting it would bolster AJAX support.

Burns noted the difference between AJAX and Sun's newly announced JavaFX technology, which features a scripting language called JavaFX Script. JavaFX does not run inside a browser, he said. "It is a rich application that runs on its own," he said.

In addition, Sun has revealed an internal effort called Project Flair, which leverages a Web kernel and JavaScript and has been positioned as an alternative to AJAX programming.

One panelist, representing AJAX framework builder Backbase, urged that capabilities such as interoperability and push technology be bolstered in AJAX development products, given competition from new technologies such as Adobe Flex and Microsoft Silverlight.

"I think we have to get our act together to bring all this functionality that we discussed today," said Mark Scheifelbein, vice president at Backbase. "We have to get these into the solutions really quick."

Related White Papers

Introducing Java Server Faces (JSF) to 4GL Developers

Find your next job with computerworld UK jobs