That is quite odd. Are you sure you are not having any compile errors?
Also, Tapestry looks for templates FIRST in the package (with the Java
.class file), then in WEB-INF (for application pages). So you may have
another template hanging around that you've forgotten about, that is
causing the error.
On 2/6/07, Hugo Palma <[EMAIL PROTECTED]> wrote:
Everything looks ok.
Did you use the maven-archetype to create the project ?
Did it work before you started changing the generated files ?
Stranzenbach, Ralf wrote:
> Hi.
>
> For sure. It's quite easy...
>
> package de.reswi.tapestry_empty.pages;
>
> import java.util.Date;
>
> import org.apache.tapestry.annotations.ComponentClass;
> import org.apache.tapestry.ioc.annotations.Id;
>
> @ComponentClass
> public class Home {
> public Date getDate() {
> return new Date();
> }
> }
>
> During my tests I've resigned and took some sample page from the maven
generated artifacts...
>
> <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
> <head>
> <title>hilo Start Page</title>
> </head>
> <body>
> <h1>hilo Start Page</h1>
>
> <p> This is the start page for this application, a good place to
start your modifications.
> Just to prove this is live: </p>
>
> <p> The current time is: ${date}. </p>
>
>
> <p>
> [<a t:type="PageLink" page="Home">refresh</a>]
> </p>
> </body>
> </html>
>
>
> Home.html and the Home.java are both placed in the "pages" package.
>
>
>
> Regards,
>
> Ralf Edmund Stranzenbach
> Manager, FS-Technology
>
> BearingPoint
> Management & Technology Consultants
>
> Gladbecker Straße 5, 40472 Düsseldorf; Germany
> +49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile
> [EMAIL PROTECTED]
>
> www.bearingpoint.com
>
> -----Ursprüngliche Nachricht-----
> Von: Hugo Palma [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 6. Februar 2007 16:14
> An: Tapestry users
> Betreff: Re: WG: IOC TapestryException creating a sample application
>
> Can you post the template of you Home page ?
> You probably have a <t:comp> tag in the template with an empty id.
>
> Stranzenbach, Ralf wrote:
>
>> Hi.
>>
>>
>>
>> I've tried to create a small sample application based on tapestry 5.0.1. I
followed the example from the screencast and it seems to work more or less fine, but
when accessing my page I get the message below.
>>
>>
>>
>> *
org.apache.tapestry.ioc.internal.util.TapestryException
>>
>> Component de.reswi.tapestry_empty.pages.Home does not contain an embedded
component with id ''.
>>
>>
>>
>> Nowhere in my code or HTML page I deal with additional ids.....
>>
>>
>>
>> I'm quite puzzled.
>>
>> Mit freundlichen Grüßen,
>>
>> Ralf Edmund Stranzenbach
>> Manager, FS-Technology
>>
>> BearingPoint
>> Management & Technology Consultants
>>
>> Gladbecker Straße 5, 40472 Düsseldorf; Germany
>> +49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile
>> [EMAIL PROTECTED]
>>
>> www.bearingpoint.com <http://www.bearingpoint.com/>
>>
>>
>>
>>
***************************************************************************************************
>> The information in this email is confidential and may be legally privileged
Access to this email by anyone other than the intended addressee is unauthorized. If
you are not the intended recipient of this message, any review, disclosure, copying,
distribution, retention, or any action taken or omitted to be taken in reliance on it
is prohibited and may be unlawful. If you are not the intended recipient, please
reply to or forward a copy of this message to the sender and delete the message, any
attachments, and any copies thereof from your system.
>>
***************************************************************************************************
>>
>>
>>
>
***************************************************************************************************
> The information in this email is confidential and may be legally privileged
Access to this email by anyone other than the intended addressee is unauthorized.
If you are not the intended recipient of this message, any review, disclosure,
copying, distribution, retention, or any action taken or omitted to be taken in
reliance on it is prohibited and may be unlawful. If you are not the intended
recipient, please reply to or forward a copy of this message to the sender and
delete the message, any attachments, and any copies thereof from your system.
>
***************************************************************************************************
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind
Professional Tapestry training, mentoring, support
and project work. http://howardlewisship.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]