You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Michael Gerzabek <mi...@gmx.net> on 2009/06/02 13:14:57 UTC

T5.1 Component X does not contain an embedded component with id Y

Hi,

I've created a template component that is able to load a .tml file from 
outside the context. Had to slightly change the ComponentTemplateSource 
to get this working. I know, I'm breaking with the Tapestry philosophy 
of 1 Class = 1 Template. So if this is a no! never! road, just tell me.

Now when I apply other components in these templates I get the following 
error message:

Component Buch:template does not contain an embedded component with id 
'addtocart'. Available components: (none). This only happens when a 
client side event (add to cart button) is triggered. Rendering is fine.

    * org.apache.tapestry5.internal.structure.ComponentPageElementImpl.getEmbeddedElement(ComponentPageElementImpl.java:841)

    * org.apache.tapestry5.internal.structure.PageImpl.getComponentElementByNestedId(PageImpl.java:78)

    * org.apache.tapestry5.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:71)

    * org.apache.tapestry5.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42)

    * $ComponentEventRequestHandler_121a0891c50.handle($ComponentEventRequestHandler_121a0891c50.java)

    * org.apache.tapestry5.internal.services.AjaxFilter.handle(AjaxFilter.java:42)

    * $ComponentEventRequestHandler_121a0891c50.handle($ComponentEventRequestHandler_121a0891c50.java)

    * org.apache.tapestry5.upload.internal.services.UploadExceptionFilter.handle(UploadExceptionFilter.java:75)

    * $ComponentEventRequestHandler_121a0891c50.handle($ComponentEventRequestHandler_121a0891c50.java)

    * org.apache.tapestry5.services.TapestryModule$36.handle(TapestryModule.java:2164)

    * $ComponentEventRequestHandler_121a0891c50.handle($ComponentEventRequestHandler_121a0891c50.java)

    * $ComponentEventRequestHandler_121a0891c4d.handle($ComponentEventRequestHandler_121a0891c4d.java)

    * org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handleComponentEvent(ComponentRequestHandlerTerminator.java:43)

    * $ComponentRequestHandler_121a0891b80.handleComponentEvent($ComponentRequestHandler_121a0891b80.java)

    * org.apache.tapestry5.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:46)

    * $Dispatcher_121a0891b85.dispatch($Dispatcher_121a0891b85.java)
    * $Dispatcher_121a0891b79.dispatch($Dispatcher_121a0891b79.java)
    * org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:245)

    * com.flexibelinstitut.tapestry5.security.services.internal.RequestFilterWrapper$1.doFilter(RequestFilterWrapper.java:60)

My question is: Is it possible to tell the template component about 
embedded components? And how is this done?

Regards,
Michael


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5.1 Component X does not contain an embedded component with id Y

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Tue, Jun 2, 2009 at 8:14 AM, Michael Gerzabek
<mi...@gmx.net> wrote:
> Hi,

Hi!

> I've created a template component that is able to load a .tml file from
> outside the context. Had to slightly change the ComponentTemplateSource to
> get this working. I know, I'm breaking with the Tapestry philosophy of 1
> Class = 1 Template. So if this is a no! never! road, just tell me.

My answer is a no! never! road. :)

-- 
Thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org