The Layout component contains the tag:

<t:body/>

as shown below.  (Maybe my ellipsis was confusing... sorry about that.)



Sven Homburg wrote:
> 
> is there no <body> tag in your layout ?
> 
> 2008/11/27 mad7777 <[EMAIL PROTECTED]>
> 
>>
>> Hi again,
>>
>> I hate to ask the same question twice.  I did actually have this working
>> with a previous version of T5, but in 5.0.15, the <body> tag is failing,
>> like this:
>>
>> Render queue error in Text[ toto ]: This markup writer does not have a
>> current element. The current element is established with the first call
>> to
>> element() and is maintained across subsequent calls.
>>
>>
>> Here is what I have:
>>
>> Layout.tml:
>>
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>> ...
>> <t:body/>
>> ...
>> </html>
>>
>>
>> Layout.java:
>>
>> package org.apache.tapestry5.tutorial.components;
>>
>> import net.rbcdexia_is.ds.application.Formatters;
>>
>> public class Layout {
>> }
>>
>>
>> Page.tml:
>>
>> <t:Layout xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>> toto
>> </t:Layout>
>>
>>
>> Page.java:
>> package org.apache.tapestry5.tutorial.pages;
>>
>> public class Page {
>>
>> }
>>
>>
>> As you can see, there really isn't much to it.  What am I doing wrong?  I
>> believe I am following the example given in
>> http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html
>> in
>> the "Tapestry Elements" section, for the <body> tag, pretty much to the
>> letter.
>>
>>
>> As usual, thanks for all your help,
>> Marc
>>
>>
>>
>> mad7777 wrote:
>> >
>> > Hi everyone,
>> >
>> > First off, I am new to Tapestry, although I've been doing WebObjects
>> for
>> > about 8 years, so the I'm hoping the transition won't be too painful.
>> > I've chosen to work with Tapestry 5 since it seems like quite a
>> > signifiicant evolution from the previous version, but I'm having some
>> > difficulty finding resoureces.  I've done the excellent Tapestry 5
>> > tutorial, but I need much more input!  Can anybody point me to some
>> useful
>> > places.  I am especially interested in words of wisdom regarding use of
>> > Tapestry and Cayenne together (which I am also learning).
>> >
>> > My current issue is trying to understand how to create a page wrapper
>> > component (or any sort of component, actually) in Tapestry 5 --
>> something
>> > like the old WOComponentContent, which I know and love.
>> >
>> > tia,
>> > Marc
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/creating-components-with-Tapestry-5-tp12850384p20723258.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> with regards
> Sven Homburg
> http://www.chenillekit.org
> http://tapestry5-components.googlecode.com
> 
> 
> -----
> best regards
> Sven
> 

-- 
View this message in context: 
http://www.nabble.com/creating-components-with-Tapestry-5-tp12850384p20723928.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to