>From: "Irv Salisbury" <[EMAIL PROTECTED]> 
>
> 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. 
>

There are several options and I'd like to add more. A core idea in Clay was to 
provide a layer of indirection to build JSF page composition. This layer allows 
reuse using OOP concepts (inheritance, aggregation and composition).


>Of the ways listed, which one do you use/prefer for templating 
> with Clay? 
> 

I like the full XML views because they give the most reuse. There doesn't need 
to be a physical file as an entry point for each page. I like that all pages 
can commonly reuse layouts and customizations are applied using symbol 
replacements. Each page can inherit the parameters that form the page content 
and override them without having to explicitly declare them for each page. The 
full XML views can be used with the other options too.


> Thanks, 
> 
> Irv 

Gary

> 
> On 9/19/06, Gary VanMatre wrote: 
> > 
> > >From: "Irv Salisbury" 
> > > 
> > > 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: 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > <@renderPageCss> 
> > > 
> > > 
> > >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