@Component defines a component, it does not inject an existing
component.  You've ended up with two BeanEditForm components, one
named "beaneditform" (from the Java code) and one anonymous (from the
template).  Change the <t:beaneditform> to, say <form
t:id="beaneditform" object="bean"/> ... or (better, for your example),
remove the beaneditform variable.

On Jan 8, 2008 2:38 PM, Franz Amador <[EMAIL PROTECTED]> wrote:
> I'm getting this error in the console:
>
> [ERROR] FormPage Embedded component(s) beaneditform are defined within 
> component class com.[...].pages.FormPage, but are not present in the 
> component template.
>
> when I have this template:
>
>
>   <head>
>     <title>Form</title>
>   </head>
>   <body>
>     <h1>Form</h1>
>     <t:beaneditform object="bean" />
>   </body>
> </html>
>
> and this page class:
>
> public class FormPage {
>     @Persist
>     private Bean bean;
>     @Component
>     private BeanEditForm beaneditform;
>
> which I presume is coming from the @Component.  The question is: why can't it 
> find the beaneditform component?  It sure looks like it's there to me.  Does 
> it have some other name?
>
> thanks,
> Franz
>
>
>



-- 
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