You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shale.apache.org by Greg Reddin <gr...@apache.org> on 2006/12/28 23:48:52 UTC

Remoting and Facelets

Is anyone using Shale Remoting with Facelets?  Since you're supposed to
short-circuit the JSF lifecycle from a remoting method, how would you use
facelets to render the resulting view?  Is it possible?

Thanks,
Greg

Re: Remoting and Facelets

Posted by Craig McClanahan <cr...@apache.org>.
On 12/28/06, Greg Reddin <gr...@apache.org> wrote:
>
> Is anyone using Shale Remoting with Facelets?  Since you're supposed to
> short-circuit the JSF lifecycle from a remoting method, how would you use
> facelets to render the resulting view?  Is it possible?


The sweet spot for Shale Remoting is use cases where you want to transport
*data* back and forth, without worrying about the JSF component tree state
(and the corresponding overhead).  To that end, Shale Remoting expects you
to take care of the output yourself (supporting the use of the standard JSF
ResponseWriter API if you like that one).

If you want to have a "partial page refresh" scenario where a part of the
JSF component tree is rerendered (using Facelets or any other view hander
technology you like), then you'll likely want to investigate Ajax4JSF[1] or
Project Dynamic Faces[2] instead.

Thanks,
> Greg


Craig

[1] https://ajax4jsf.dev.java.net/
[2] https://jsf-extensions.dev.java.net/