I am glad you sent this to me.  Clay feels a lot more natural to me.  As it
seems with all things JSF related, there are many different ways to
accomplish the same thing.  It seems like templating is the same way, even
inside clay.  Of the ways listed, which one do you use/prefer for templating
with Clay?

Thanks,

Irv

On 9/19/06, Gary VanMatre <[EMAIL PROTECTED]> wrote:

>From: "Irv Salisbury" <[EMAIL PROTECTED]>
>
> Ok, so gmail just sent the above without me getting to finish. I must
have
> hit some weird quick key...
>
> Would I just setup multiple .jspf pages and include them at the
appropriate
> time? Or is there a way to do:
>
>
><html>
>    <head>
>         <link href="mycss.css"></link>
>         <@renderPageCss>
>         <title><@pageTitle></title>
>
>etc.
>
>
> (I have done things like this with Tapestry and XSL) I just want the
shale
> / JSF way to do it. It is really templating....
>

You might be interested in the shale-clay-mailreader in the sandbox.(
http://svn.apache.org/viewvc/shale/sandbox/shale-clay-mailreader/)


This example uses Clay full xml views. It shows a couple of different
options. The templates that are tapestry like have "_tap" in the name.  Most
of the pages uses namespace support (a new feature).


http://svn.apache.org/viewvc/shale/sandbox/shale-clay-mailreader/src/main/webapp/pages/
If you are trying to compare Clay with Tiles, you will want to look at
this example because the entry point of the page is not a physical file.

(
http://svn.apache.org/viewvc/shale/sandbox/shale-clay-mailreader/src/main/webapp/WEB-INF/clay-tiles-config.xml?view=markup
)
You can find a bunch of examples on different ways to use Clay in the
shale-clay-usecases exmaples project. This showcases the same "rolodex"
example done using 4 different types of templating.  You can find it here:
http://people.apache.org/builds/shale/nightly/


You can find some general documentation on Clay here:  (
http://shale.apache.org/features-reusable-views.html). The top half reads
pretty good (written by David Geary). The rest tries to pack in some of the
key features.
I hope that gets you started.

> Irv
>

Gary

Reply via email to