What if you try making the <html> element the border object? Like so:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xmlns:t="
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; t:type="Border">
  <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
     <title>My Project</title>
  </head>
  <body>
     <div id="main">
        <div id="content">
           <div class="content-holder">
              <div class="text-column">
            <t:parameter name="content">
                     My content
            </t:parameter>
              </div>
           </div>
        </div>
     </div>
  </body>
</html>

On Wed, Apr 2, 2008 at 11:56 AM, Onno Scheffers <[EMAIL PROTECTED]> wrote:

> Hi Peter,
>
> thanks, but this still doesn't seem to solve the issue. The Start page
> still
> renders all template-content around <div class="text-column"
> t:type="Border">...</div>.
>
> regards,
>
> Onno
>
>
>
> 2008/4/2, Peter Beshai <[EMAIL PROTECTED]>:
> >
> > Hi there, I believe I have a solution that works using parameters and
> > delegates. Basically instead of including <t:body/> you will delegate
> the
> > content to a parameter of the component. See the source below:
> >
> >
> > Start.tml:
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
> > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> > <html xmlns="http://www.w3.org/1999/xhtml"; xmlns:t="
> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> >   <head>
> >      <meta http-equiv="Content-Type" content="text/html;
> charset=utf-8"/>
> >      <title>My Project</title>
> >   </head>
> >   <body>
> >      <div id="main">
> >         <div id="content">
> >            <div class="content-holder">
> >               <div class="text-column" t:type="Border">
> >
> >         <t:parameter name="content">
> >                  My content
> >         </t:paramter>
> >
> >               </div>
> >            </div>
> >         </div>
> >      </div>
> >   </body>
> > </html>
> >
> >
> >
> > Border.tml:
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
> > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> > <html xmlns="http://www.w3.org/1999/xhtml"; xmlns:t="
> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> >   <body>
> >      <div id="main">
> >         <div id="header">[...]</div>
> >         <div id="content">
> >            <div class="content-holder">
> >               <div class="nav-column">
> >                  <ul class="navigation">
> >                     <li>Item 1</li>
> >                     <li>Item 2</li>
> >                  </ul>
> >               </div>
> >               <div class="text-column">
> >
> >                  <t:delegate to="content"/>
> >
> >               </div>
> >            </div>
> >         </div>
> >      </div>
> >   </body>
> > </html>
> >
> >
> > Border.java:
> > @Parameter
> > @Property
> > private Block _content;
> >
> >
> >
> >
> >
> > On Wed, Apr 2, 2008 at 7:52 AM, Julien HENRY <[EMAIL PROTECTED]> wrote:
> >
> > > Sorry Onno, I was wrong.
> > >
> > > Because Layout is basically component it doesn't work the way you (and
> > I)
> > > expected. So it seems there is no official way to keep templates
> > previewable
> > > with additionnal ouside markup that will be discarded at runtime to
> only
> > > keep the outside of the template.
> > >
> > > ----- Message d'origine ----
> > > De : Onno Scheffers <[EMAIL PROTECTED]>
> > > À : Tapestry users <[email protected]>
> > > Envoyé le : Mercredi, 2 Avril 2008, 12h59mn 26s
> > > Objet : Re: Re : T5: Layout question
> > >
> > > Hi Julien
> > >
> > > thanks for your answer and that was what I expected to see happening,
> > but
> > > it
> > > doesn't.
> > > So if it is supposed to work like that, then I must be doing something
> > > wrong
> > > here.
> > >
> > > My Start.tml:
> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
> > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> > > <html xmlns="http://www.w3.org/1999/xhtml"; xmlns:t="
> > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> > >    <head>
> > >      <meta http-equiv="Content-Type" content="text/html;
> > charset=utf-8"/>
> > >      <title>My Project</title>
> > >   </head>
> > >    <body>
> > >      <div id="main">
> > >         <div id="content">
> > >            <div class="content-holder">
> > >               <div class="text-column" t:type="Border">
> > >                   My content
> > >                </div>
> > >            </div>
> > >         </div>
> > >      </div>
> > >   </body>
> > > </html>
> > >
> > > My Border.tml:
> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
> > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> > > <html xmlns="http://www.w3.org/1999/xhtml"; xmlns:t="
> > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> > >   <body>
> > >      <div id="main">
> > >          <div id="header">[...]</div>
> > >          <div id="content">
> > >            <div class="content-holder">
> > >                <div class="nav-column">
> > >                  <ul class="navigation">
> > >                     <li>Item 1</li>
> > >                     <li>Item 2</li>
> > >                  </ul>
> > >               </div>
> > >                <div class="text-column">
> > >                  <t:body />
> > >                </div>
> > >            </div>
> > >         </div>
> > >      </div>
> > >   </body>
> > > </html>
> > >
> > > Tapestry output:
> > >
> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";><html
> > > xmlns="http://www.w3.org/1999/xhtml";><head><link
> > > href="assets/tapestry/default.css" rel="stylesheet"
> > > type="text/css"><meta content="text/html; charset=utf-8"
> > > http-equiv="Content-Type"><title>My Project</title></head><body><div
> > > id="main">
> > >         <div id="content">
> > >            <div class="content-holder">
> > >                <html
> > > xmlns="http://www.w3.org/1999/xhtml";><head>[...]</head><body><div
> > > id="main">
> > >         <div id="header">[...]</div>
> > >          <div id="content">
> > >            <div class="content-holder">
> > >                <div class="nav-column">
> > >
> > >                  <ul class="navigation"><li>Item 1</li><li>Item
> > > 2</li></ul>
> > >               </div>
> > >               <div class="text-column">
> > >
> > >                   My content
> > >
> > >               </div>
> > >            </div>
> > >         </div>
> > >      </div></body></html>
> > >
> > >            </div>
> > >         </div>
> > >      </div></body></html>
> > >
> > >
> > > regards,
> > >
> > > Onno
> > >
> > >
> > >
> > > 2008/4/2, Julien HENRY <[EMAIL PROTECTED]>:
> > > >
> > > > Hi Onno,
> > > >
> > > > You don't need to do anything else. Everything outside of
> > > >
> > > > <div class="text-column" t:type="Border">
> > > >                   Page content
> > > > </div>
> > > >
> > > > will be discarded and the Layout component will be used instead. Is
> it
> > > not
> > > > the case?
> > > >
> > > > Regards,
> > > >
> > > > Julien
> > > >
> > > > ----- Message d'origine ----
> > > > De : Onno Scheffers <[EMAIL PROTECTED]>
> > > > À : Tapestry users <[email protected]>
> > > > Envoyé le : Mercredi, 2 Avril 2008, 11h26mn 58s
> > > > Objet : T5: Layout question
> > > >
> > > >
> > > > I created a Layout component called Border.
> > > > According to the documentation, I have to setup my page something
> like
> > > > this:
> > > > <html t:type="Border" xmlns:t="
> > > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> > > >    Page content
> > > > </html>
> > > >
> > > > I want the template to be previewable though so the webdesigners can
> > > work
> > > > with the pages more easily.
> > > > For this I need some more markup around the page content that needs
> to
> > > be
> > > > ignored when rendering the page. Thus something like this:
> > > >
> > > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
> > > > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> > > > <html xmlns="http://www.w3.org/1999/xhtml"; xmlns:t="
> > > > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> > > >    <body>
> > > >       <div id="main">
> > > >          <div id="content">
> > > >             <div class="content-holder">
> > > >                <div class="text-column" t:type="Border">
> > > >                   Page content
> > > >                </div>
> > > >             </div>
> > > >          </div>
> > > >       </div>
> > > >    </body>
> > > > </html>
> > > >
> > > > Is there a way I can tell Tapestry to ignore all Markup outside of
> the
> > > > Border component?
> > > >
> > > > regards,
> > > >
> > > > Onno
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> >
> _____________________________________________________________________________
> > > > Envoyez avec Yahoo! Mail. Plus de moyens pour rester en contact.
> > > > http://mail.yahoo.fr
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > >
>  _____________________________________________________________________________
> > > Envoyez avec Yahoo! Mail. Plus de moyens pour rester en contact.
> > > http://mail.yahoo.fr
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>

Reply via email to