Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Channels ▼
RSS

Web Development

Using JSF and JSR 168 Portals to Develop Ajax Applications


Ajax is red-hot and well on the way to becoming a de facto standard for the next generation of Web applications because it delivers many key benefits, including:

  • Improved user acceptance and productivity, with a desktop-like experience.
  • Ease of deployment with immediate update availability to all users.
  • Adherence to standards and a dependency only on widely deployed technologies.
  • An important developer community with very active open-source projects.
  • Easy incremental improvements to existing Web applications
  • A successful organization, the OpenAjax Alliance, backed by market heavyweights to disseminate Ajax know-how and foster interoperability.

But jumping aboard the Ajax bandwagon doesn't mean an easy ride and can be demanding for IT developers. For instance, the development ecosystem is not as rich and productive as their desktop counterparts, and the asynchronous communication with the servers quickly becomes hard to design, debug and maintain for large-scale applications.

The Java Platform

For developers working in Java, there are two server-side technologies that can help overcome some of today's Ajax application development hurdles:

  • JavaServer Faces (JSF) is a Java standard built upon the Struts experience. It accelerates Web application development thanks to a tooling ecosystem with integrated development environments (IDEs), such as Oracle JDeveloper, IBM/Rational Application Developer and Sun Studio Creator and JSF-ready Web servers such as IBM Websphere Application Server, BEA Weblogic and Oracle Application Server.
  • Portals, like those conforming to the JSR 168 standard, provide many additional benefits for content aggregation, single sign-on a,d display personalization with persistence to deliver a customized experience to users.

In this article, we provide an explanation of how JSF and JSR 168 portals can be used to deliver Ajax applications. We first show how to integrate JSF into JSR 168 portals, then how to extend these JSF components to provide Ajax behaviors within the portals.


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.