Hi Rogers,
Sorry for the confusion... events/handlers work just fine for a
component defined w/ JSFT (w/o the JSFT ViewHandler). The
LayoutViewHandler in JSFTemplating only adds support for JSF "pages" in
JSFTemplating. So if you're not writing pages, you don't need it.
Although the same syntax is used for both pages and componenents, the
ViewHandler is not used at all for components.
*With ViewHandler
* *Without ViewHandler
* *Event / Handler
Support
*
Facelets *Pages* parsed by JSFT
X
X
Other JSFT formatted *Pages*
X
X
JSP-based *Pages*
X
X
JSFT-based *Components*
X
X
X
Facelets *Pages* run by Facelets
X
X
Maybe the above table is more clear? The TemplateRenderer used for
components provides all JSFT features including events/handlers. For
pages, the LayoutViewHandler does this.
Good luck!
Ken
Rogers Reilly wrote:
> Thanks Ken, I tweaked those faces-config files in the two .jars as you
> suggested, and can now use a basic template in my app.
>
> So, on the events/handler stuff, that is all done by the JSFTemplating
> ViewHandler? The TemplateRenderer (on its own) can't pick up and
> handle an annotation-defined handler in the template file? It makes
> sense that the Events would require JSFT to be handling everything,
> but Handlers seem like they might work in a standalone renderer
> situation.
>
> Thanks again.