The Include component I posted a few days ago was not really intended as
a Border component replacement, but rather as a supplement.  In my case,
the Border template usually has navigation specific to the local webapp,
and the contained Include component inserts site-wide navigation links
to other apps, etc., so I don't have to copy/paste common navigation
links.  Since the Include component inserts the contents of a specified
external URI, changes to that one external page are immediately
reflected across the entire site, without having to repeatedly
copy/paste those changes and also without having to redeploy all the apps.

Shawn

Quoting Robert Zeigler <[EMAIL PROTECTED]>:

> Daniel M Garland wrote:
> > Hi
> > 
> >> The only real downsides are that the contents must
> >> be static and relative links should be avoided (or handled).
> >>
> >>  
> >>
> > 
> > If I want a consistent navigation bar throughout the website that
> uses
> > directlinks and other tapestry components what are my options
> then?
> > Cut+paste is bound to lead to issues....
> 
> I would suggest a "Border" component.
> 
> Border.html
> 
> <html jwcid="@Shell" title="'My App'">
> <body jwcid="@Body">
> <div id="menu">
>   <ul>
>    <li><a href="#" jwcid="@DirectLink">Nav1</a></li>
>    ...
>   </ul>
> </div>
> <div id="content">
>   <span jwcid="@RenderBody"/>
> </div>
> </body>
> </html>
> 
> Then, in each of your pages, you can do:
> 
> <body jwcid="@Border">
>   Some page text.
> </body>
> 
> Voila, Everything is included nicely. :)
> 
> Robert
> 
> > 
> > TIA
> > Cheers
> > Dan
> > 
> > 
> >
> ______________________________________________________________________
> > This email has been scanned by the MessageLabs Email Security
> System.
> > For more information please visit http://www.messagelabs.com/email
> >
> ______________________________________________________________________
> > 
> >
> ---------------------------------------------------------------------
> > 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]
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to