Thanks a lot! This will help. Irv
On 9/17/06, Bernard <[EMAIL PROTECTED]> wrote:
Irv Salisbury wrote: > If we have pages that have common headers, footers, etc, what is the best > way to do that with Tapestry? Split your common layout into smaller parts and create components ie. Footer, Header, TopMenu, LeftMenu etc. and reuse them. If your pages share common layout it is good to create a common border component/s. These acts as decorators to their content. You use such a component to wrap page's actual content. Ie. sample @Border component: <span jwcid="@Shell"> <span jwcid="@Header"/> <span jwcid="@LeftMenu"/> <span jwcid="@RenderBody"/> <!-- this is where your wrapped content will be rendered --> <span jwcid="@Footer" /> </span> Sample page: <span jwcid="@Border"> <span jwcid="@Body"> <-- a body component can be also a part of the border, if you like --> page content goes here </span> </span> Best regards, Bernard --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]