My border is usually: <html jwcid="@Shell" ...><body jwcid="@Body"> <div id="container"> <div id="header">...(usually inline html) ...</div> <div id="menu">...(usually menu component) ...</div> <div id="content"><span jwcid="@RenderBody"/></div> <div id="footer">...(usually inline html) ...</div> </div> </body></html>
Now, each page can simply be: <div id="content" jwcid="@Border"> ... page specific content ... </div> but, to get better previews you can use: <html> <head>... add stylesheets for nice preview</head> <body jwcid="$content$"> <div id="content" jwcid="@Border"> ... page specific content ... </div> </body> </html> or (if positioning of 'content' div depends on other divs): <html> <head>... add stylesheets for nice preview</head> <body> <div id="container"> <div id="header"> </div> <div id="menu"> </div> <div jwcid="$content$"> <div id="content" jwcid="@Border"> ... page specific content ... </div> </div> <div id="footer"> </div> </div> </body> </html> Just make use of the $content$ and $remove$ pseudo-components. http://tapestry.apache.org/tapestry4/UsersGuide/template.html Malin Ljungh wrote: > I thought one of the main advantages of Tapestry was that you can open > your > html files directly from > the filesystem and see how they actually will look when rendered by the > Tapestry servlet. > > But now when my design guy is about to do the css this is not the > case, and > I guess it is because I have not entered static bodies to the components > that renders its own body in a proper way. And the biggest "problem" is > maybe the border component. > Am I supposed to insert a static version of my border component in > each and > every page to get this to work properly? What if I change the border > component - I will have to change all my files... > > I realise this is not a critical runtime issue, but I thought maybe I > have > missed something here. How do you guys handle this? > > Malin > -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
