Under My Palapa

Jason Young’s geek blog

ExtJs with JSF

with 4 comments

I saw some people were finding this blog by doing a search for ExtJs with JSF.

I previously searched and found that someone had wrapped up ExtJs into a JSF library, however it appeared to be a dead project.

A coworker and I instead decided to use Apache Shale to expose methods in a managed bean, to return the JSON data that ExtJs wanted. At the time, we were only using the ExtJs Tree component. We needed to use the ExtJs Tree instead of the one from RichFaces because of a certain requirement that could not be fulfilled with RichFaces.

Written by jaydfwtx

August 30, 2008 at 10:29 pm

Posted in uncategorized

Tagged with ,

4 Responses

Subscribe to comments with RSS.

  1. pretty neat.

    Kirt

    August 31, 2008 at 9:28 pm

  2. can you post any example code?

    Jeremy Leipzig

    November 6, 2008 at 7:05 pm

  3. @Jeremy

    Sorry, it’s a bit hard for me to post an example without writing code from scratch.

    Take a look at the samples on the ExtJs site. For example, the tree one. You notice it takes a PHP page as it’s dataUrl. Instead of PHP, you would use a url that maps to JSF bean method name (exposed by Shale). The JSF bean method would output the same kind of JSON that their PHP page is outputting.

    http://extjs.com/deploy/dev/examples/tree/reorder.js
    http://extjs.com/deploy/dev/examples/tree/get-nodes.php

    jaydfwtx

    November 6, 2008 at 7:38 pm

  4. How did you managed to connect extjs with shale?

    XLR

    April 29, 2009 at 7:56 am


Leave a Reply