To preview, I use something like the following. <html t:type="layout" xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<head t:type="remove"> <link rel="stylesheet" href="../css/main.css" type="text/css"/> </head> <body> Hello! </body> </html> ---------------- I use a simple remove component ,with no template, to remove the header tag. public class Remove { protected boolean beginRender(){ return false; } } Shing Home page : http://www.lombok.demon.co.uk/ --- On Wed, 9/7/08, Fabio Kreusch <[EMAIL PROTECTED]> wrote: > From: Fabio Kreusch <[EMAIL PROTECTED]> > Subject: [T5] Layout and $remove$ > To: "Tapestry users" <users@tapestry.apache.org> > Date: Wednesday, 9 July, 2008, 3:30 AM > Hello all, > > I'm new to Tapestry 5, and I'm having some > problems: > > In T4, the Shell component creates the outer layout. When I > insert a > shell component in my pages, it ignores the page > <html><head> etc and only > renderizes > the <body>, and renderizes the shell > <html><head>. > > On T5, with the <t:layout>, it renders both, the > layout <html><head> and > the page <html><head>. > How can I make it render only the layout > <html><head>? > > And how can I make so that it don't render > something, like the $remove$ > tag on T4? > > The tutorials I found about T5 shows examples with layout > this way: > > On the layout page, it goes the shell: > > <html> > <head> > etc > > On the page, just the body content, like: > > <t:layout > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> > ${hello} > </t:layout> > > But if I do this way, when I open the page on a web browser > it doesn't > recognize it > as a html page. I have tried adding a > > <meta http-equiv="Content-Type" > content="text/html; charset=UTF-8"/> > > It works for a preview, but when I run tapestry it throws > this exception: > Failure parsing template context:Start.tml: The markup in > the document > following the root element must be well-formed. > > How are you doing to preview the pages? > > Thanks. > > > -- > Fabio Kreusch > [EMAIL PROTECTED] __________________________________________________________ Not happy with your email address?. Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]