Just one thing if anyone try this again: I had to add a xmlns, otherway it doesn't uses the Border component:
t:type="Layout" xmlns:t=" > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd" Did it worked for you without the xmlns? 2008/7/9 Fabio Kreusch <[EMAIL PROTECTED]>: > Thanks, that's what I needed! > > 2008/7/8 Onno Scheffers <[EMAIL PROTECTED]>: > > Hi Fabio, >> >> it looks like you're looking for the same thing I was looking for a while >> ago. >> >> http://www.nabble.com/Re-%3A-Re-%3A-T5%3A-Layout-question-tc16448904.html#a16448904 >> >> Look for Peters' responses in that Thread. He really helped me out. >> >> regards, >> >> Onno Scheffers >> >> >> >> 2008/7/8 Fabio Kreusch <[EMAIL PROTECTED]>: >> >> > 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] >> > >> > > > > -- > Fabio Kreusch > [EMAIL PROTECTED] > -- Fabio Kreusch [EMAIL PROTECTED]