Hi That should of course read: Thanks for your clarification -Gary- .... Sorry !
Hermod -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 23, 2005 6:25 AM To: user@struts.apache.org Subject: RE: [shale] Design questions Hi Thanks for your clarification Craig. So, if I read you correct, Tiles and Clay go hand in hand. Use Tiles for assembling the pages, so that you only have to write jsp/html files containing the specific content (not the whole page). Then use Clay to do the work writing of the jsp/html files them self, utilizing Clay component definitions and their corresponding jsfid's in those pages. Hermod -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 22, 2005 11:49 PM To: Struts Users Mailing List Subject: RE: [shale] Design questions > Hi > > So how would you implement composition, with inheritance, using Clay instead > of > Tiles?. I'm a big fan of Tiles and think that Clay and Tiles have their own niches. I see tiles as a tool for assembling page fragments in a reusable way. Clay is at a more granular level. It's focus is on assembling a page of reusable widgets. There are many ways to use Clay but I'll give the following example of inheritance and composition. <component jsfid="baseInputText" extends="inputText"> <attributes> <!-- Convention mapping "class" attribute to "styleClass" property --> <set name="styleClass" value="@class"/> </attributes> <symbols> <set name="class" value="generic" /> </symbols> </component> <component jsfid="panel" extends="panelGrid"> <element jsfid="baseInputText" renderid="0" > <attributes> <set name="value" value="[EMAIL PROTECTED]"/> </attributes> <symbols> <set name="class" value="blue" /> </symbols> </element> <element jsfid="baseInputText" renderid="1" > <attributes> <set name="value" value="[EMAIL PROTECTED]"/> </attributes> <symbols> <set name="class" value="green" /> </symbols> </element> </component> Elements form composition but also add inheritance similar to a java inner class. The new symbol replacement is sort of a tiles like feature where you can customize by overriding a symbol value. PS: I'm on vacation this week and have limited Internet access. > > Hermod > Gary * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This email with attachments is solely for the use of the individual or entity to whom it is addressed. Please also be aware that DnB NOR cannot accept any payment orders or other legally binding correspondence with customers as a part of an email. This email message has been virus checked by the virus programs used in the DnB NOR Group. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]