Oracle Magazine Special offer for AjaxImpact.com Visitors!! Subscribe to Oracle Magazine for Free!
AJAX IMPACT


ARTICLES
JavaServer Faces and AJAX for Google Fans
04/18/2006, By Jonas Jacobi and John Fallows



Jonas Jacobi & John Fallows, the writers of the Ajax book Pro JSF and Ajax: Building Rich Internet Components has written a nice article explaining how to Ajax-enable data fetch for your JSF components using Mabon, and how you can package external resources needed for your JSF component into the same archive as your Java classes leveraging the Weblets project.

In this article they will show you how to use Mabon to create a simple and powerful input component with built-in suggest functionality similar to what Google Suggest provides.

To make it easy for application developers to use our JDJ InputSuggest component, we are going to use the Weblets open source project to bundle external resources, such as icons and JavaScript libraries, into a Java archive (JAR) that represents our JSF component bundle.

The JSF AJAX input suggest solution consists of four classes as shown below:



These classes are as follows:

  • The HtmlInputSuggest is the renderer-specific subclass.


  • The HtmlRenderer superclass provides some convenient methods for encoding resources.


  • The HtmlInputSuggestRenderer is your new custom Renderer, which is in charge of the markup rendered to the client, including resources needed such as JavaScript libraries and style sheets.


  • The HtmlInputSuggestTag is the tag handler.




  • Finally, after reading this article you will be able to create reusable rich Internet components with JSF and AJAX, This article will help you in creating your own custom components and build Rich Internet Applications (RIAs) with JSF.

       Read Complete Article...

     Rate this Ajax Articles
     Rating: 7.5 out of 2 votes cast

    AJAX NEWS
    04/01/2007 wxJavaScript : porting wxWidgets to JavaScript.
    03/31/2007 DED|Chain - The web developers JavaScript Kit
    03/30/2007 Clipperz Crypto Library - a JavaScript library of crypto primitives
    03/28/2007 ETech - AJAX Unplugged Slides
    03/27/2007 Stripe Generator: ajax powered web 2.0 tool!
    03/26/2007 Finally Microsoft joins the OpenAjax Alliance


    INDUSTRY NEWS
    05/19/2006 Ajax grabs center stage at JavaOne, By Tony Baer
    05/15/2006 Oracle to boost AJAX, Java , By Paul Krill
    05/13/2006 Open AJAX Group Drafts Development Plans, By Stacy Cowley
    05/13/2006 AJAX Powers Interactive Marketing ASP, By AjaxWorld News Desk
    05/12/2006 AJAX Experts Tackle Security, Other Issues , By Darryl K. Taft
    05/11/2006 Adobe Releases Spry Framework for AJAX, By AjaxWorld News Desk
    More 
           

          © 2008 ajaximpact.com. All rights reserved.