On 10/31/06, Aneesha Govil <[EMAIL PROTECTED]> wrote:


On 10/31/06, Craig McClanahan < [EMAIL PROTECTED]> wrote:
In addition to the other references people have given, you might want to look at the Remoting feature in Shale[1].  It includes a built-in phase listener that tries to do all the hard stuff so you don't have to, and an extensible Processor architecture so you can plug in your own processing logic.

One important factor is that Shale Remoting assumes you do *not* need access to the JSF component tree for the original page (thus eliminating the overhead of saving and restoring it), or even that the client be a JSF page at all. 

Any idea how to use shale to write a custom ajax-enabled component? It seems that it can work only with plain html, according to the introduction on their page. So to use shale and make it ajax-enabled, I need to make my data table manually with <table><tr><td> tags instead of using tomahawk datatable?

Many of the JSF components in the BluePrints Catalog library[1] are built using Shale Remoting, using it for two different purposes:

* Retrieving static CSS and JS files that are embedded in the
  JAR file containing the component classes

* Mapping to an asynchronous callback handler by translating
  a portion of the URL to a method binding _expression_

You can grab the sources for the components to see how this was done.  Further questions about using Shale Remoting to build your own components would best occur on the Shale user mailing list[2].

Craig

[1] http://developers.sun.com/ajax/
[2] http://shale.apache.org/mail-lists.html


Thanks,
Aneesha

Reply via email to