Has anyone here played around with components that don't have a
specification file? I heard there was some bug in a previous version o
Tapestry 4 (beta 2, I think) that wouldn't allow you to do it but I don't
know what the status is today.

 

I have been able to do it with pages with no problems. With components, I
was able to do it by implementing an ITemplateSourceDelegate that did some
magic. The problem is that if Tapestry will eventually support it, by using
my implementation I might end up with a bunch of pages that reference
components my way, which may be incompatible with Tapestry's official
implementation. (eg. a component inside the shopping cart folder would be
referenced as: "shoppingcart/ProductList" but with Tapestry it may be
different). Anyway, I didn't write an implementation of
ITemplateSourceDelegate to do that, I wrote it so I could place my page
templates in any folder I want to (other than Tapestry's defaults), the
ability to use components without a spec file was just a bonus.

 

So what I'd like to know is if there's already some standard Tapestry way of
creating components without the spec file and, if so, how do I do it? And
how would I reference them from within my pages?

 

Denis Souza

 

Reply via email to