Tapestry couldn't find your component's template and was forced to
assume it didn't exist.  I'm beginning to wonder if we need an
annotation for components that don't have a template, since this can
be a bastard for newbies to track down.


Component templates are stored on the classpath, with the associated
.class file; i..e, src/main/resources.  In addition, you must match
the name of the Java class to the name of the template filed
(MyComponent.java --> MyComponent.tml).

On Thu, Nov 27, 2008 at 9:49 AM, mad7777 <[EMAIL PROTECTED]> wrote:
>
> 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]
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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

Reply via email to