On 3/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> As I find JSF has h:subview or other h: component,
> can I use JSF component only such that I can do without Tiles?
> If yes, should it be h:subview or other component?


To be precise, JSF supports <f:subview> not <h:subview>.  It is part of the
core library that does not depend on whether you are using HTML rendering.

You can use JSP dynamic includes inside an <f:subview> tag, so from that
perspective you can use it for reusing "layouts" in a limited sense.  Same
principle applies with static includes (<% @include file="..." %>).  But
neither approach provides the full generality of "use a template but
customize this part" that Tiles lets you do.

Shale's "Clay" plugin provides a different approach to reuse that focuses on
extending component definitions, rather than entire pages.  The "use cases"
example application illustrates a bunch of different ways this capability
can be used.  Nightly builds are available at:

  http://cvs.apache.org/builds/struts/nightly/struts-shale/

Thanks
>
>
Craig

Reply via email to