The Source for Java Technology Collaboration
User: Password:



Ed Burns

Ed Burns's Blog

New release of JSF AJAX Components (Updated)

Posted by edburns on April 20, 2006 at 06:51 AM | Comments (14)

Many thanks to my pal Vernon Singleton for handholding me through the process of converting these huge QuickTime files down to much smaller FLV and SWF files. Maybe he'll do a blog on how to do it!

Nearly a year ago, the BluePrints and JSF teams at Sun began to work on the story of how AJAX and JSF would work together. As we began to get into it, we found that these two technologies were very complimentary. We developed and continue to refine techniques for how to use AJAX with JSF.

The landing page for the Java BluePrints AJAX components is: <https://blueprints.dev.java.net/ajaxcomponents.html>

I've recorded a screencast blog for each of the components in the catalog. Please excuse my slow pace of speaking, I'm aware that we have a large contingent of European JSF developers and my tendency is to speak fast American English. Therefore, I made a conscious effort to speak slowly.

These components leverage the Dojo Toolkit and make use of the JSF PhaseListener approach for serving up JavaScript files and handling AJAX requests on the JSF server. This approach was innovated by the Blueprints and JSF teams and generalized in the Shale Remoting library, which these components leverage to great effect.

Technorati Tags:

Bookmark blog post: del.icio.us del.icio.us Digg Digg DZone DZone Furl Furl Reddit Reddit
Comments
Comments are listed in date ascending order (oldest first)

  • Wow, these components look awesome. Is it possible to build and deploy without Glassfish? In just plain Tomcat 5.5?

    Posted by: rwallace on April 20, 2006 at 10:39 AM

  • Yes you can deploy them on other app servers and web containers as well as GlassFish. There are 2 component libraries, one of them is based on JSF 1.1 and the second library is based on JSF 1.2. As long as the app server or web container supports the proper version of JSF, then the components should run fine. The list of components in each library is at
    https://blueprints.dev.java.net/ajaxcomponents.html

    hth,
    Sean

    Posted by: sean_brydon on April 20, 2006 at 03:24 PM

  • Good stuff Ed.

    Check out the EBA JSF AJAX latest release:
    http://developer.ebusiness-apps.com:8888/EbaJsfComboBox/

    I think you will really enjoy this article:
    http://www.developer.com/java/ent/article.php/3598846

    I look forward to working more closely with you-all.

    Cheers,
    Godfrey
    http://blogs.ebusiness-apps.com/godfrey/

    Posted by: godfreyvan on April 20, 2006 at 04:06 PM

  • Thanks for the response Sean. Two questions I still have tho. 1) Can you build without Glassfish? If so, how? The ant build.xml seems to expect it to be installed and have the build.properties file modified to point to the install. 2) What makes a web container support JSF? As far as I know, the only thing that really matters is what version of the jvm your running and the Servlet/JSP version the web container supports, right?

    Posted by: rwallace on April 20, 2006 at 04:43 PM

  • How appropriate it was Dojo. Definitely one of the stronger js api designs out there.

    Posted by: ilazarte on April 21, 2006 at 04:53 PM

  • He Ed.
    Are you aware that the autocompletion only seems to work if you browser runs with en-gb as language?
    Try set you browser language to Danish, and the static/META-INF/common/script.js
    will say
    java.lang.IllegalArgumentException: Invalid date format: ma, 24 apr 2006 07:44:45 GMT

    Just for you info, and thanks for a great component.

    Posted by: brunatajer on April 24, 2006 at 12:53 AM

  • brunatager -- Please take a look at the Eba JSF Ajax auto-complete combo box. I have ensure this is fully i18n. My demo works with strings such as "Østfold", part of norway.

    http://labs.ebusiness-apps.com/wiki/default.asp?AjaxJsfComponents

    Posted by: godfreyvan on April 24, 2006 at 10:09 PM

  • Ed do any of these samples allow the Ajax request to save data?

    Posted by: godfreyvan on April 24, 2006 at 10:10 PM

  • Hey checkout my new screencase:

    labs.ebusiness-apps.com/download/NetBeansJSFComboBoxDemo/NetBeansJSFComboBoxDemo.html

    Posted by: godfreyvan on May 05, 2006 at 03:50 PM

  • Hi, I had some problems with several of the attributes for the progress bar. I needed to add some code to ProgressBarRenderer.java to write out the javascript function pointers correctly. I'm not sure if there's a newer version that has these changes, but I thought i'd post them in case there wasn't.

    For each of the javascript "on" calls, a new Function has to be added, eg:

    if (onComplete != null && onComplete.length() > 0) {
    writer.write("bpui.progressbar.state[\""); //NOI18N
    writer.write(clientId);
    writer.write("\"].onComplete = "); //NOI18N
    writer.write(" new Function(\""); // CRW 20061106
    writer.writeText(onComplete, "onComplete"); //NOI18N
    writer.write("\");"); // CRW 20061106
    writer.write("\n"); //NOI18N
    }
    Note the changes that I've made by my initials.
    The same exact changes must also be made for OnFail, OnUpdate, etc, which I will not post since they need the same changes.

    Posted by: crwang on November 06, 2006 at 11:44 AM

  • Didn't realize i had to post in Html

    if (onComplete != null && onComplete.length() > 0) {

    writer.write("bpui.progressbar.state[\""); //NOI18N

    writer.write(clientId);

    writer.write("\"].onComplete = "); //NOI18N

    writer.write(" new Function(\""); // CRW 20061106

    writer.writeText(onComplete, "onComplete"); //NOI18N

    writer.write("\");"); // CRW 20061106

    writer.write("\n"); //NOI18N

    }

    Posted by: crwang on November 06, 2006 at 11:48 AM

  • This is awesome stuff, Ed.

    I am wondering about the increased complexity of using AJAX + JSF in a large scale dev project and its impact on timelines, developer productivity, cost etc...

    Anyone care to comment?

    Posted by: makhija on July 15, 2007 at 10:47 AM

  • Hi Ed,

    I m a Java devoloper working on IBM PortalServer 5.1 and JSF. I was tried use your component for AutoComplete in JSF, but i m facing some trouble where can i find some help regarding this?

    Posted by: sar_584 on October 26, 2007 at 02:49 AM

  • The fourth wow power leveling latest game in wow power leveling Warcraft series is ‘wow power leveling’. Also known as wow power leveling, it represents a wow power leveling multiplayer online wow power leveling game, the best of wow power leveling kind. Initially, it was wow gold it be released in 2001, but wow powerleveling was delayed wow powerleveling 2004, thus wow powerleveling the 10 years ofwow powerleveling franchise of thiswow gold series. The world of warcraft power leveling was not world of warcraft power levelingfulfilling, because wow power levelproblems with wow power level server’s stability power leveling wow performance occurred, but power leveling wow game still power leveling wow a financial success powerleveling wow the most powerleveling wow game of its kind. The number cheap wow power leveling users that play Maple Story mesos, exceeds 8.5 MapleStory mesos, worldwide.As a form ms mesos,recognition for mesos,outstanding popularity, the game SilkRoad Gold, received aSRO Gold, of awards. Now the question eq2 plat, why is eq2 gold, game eq2 Platinum, popular? For anyoneEverQuest 2 Platinum, played the previous EverQuest 2 gold, and EverQuest 2 plat, already initiated lotro gold, the mysterious world lotr gold, the breathtaking Lord of the Rings online Gold, this Rolex Replica nothing but an Replica Rolex adventure that continues the story of ‘Warcraft III: Frozen Throne’, four years after conclusion, in the world of Azeroth. The game is online role-playing, the previous versions being online and offline strategy games. The major thrills and unique features are present as in every Blizzard game.

    Posted by: zhulie on May 29, 2008 at 12:47 AM





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds