On Wed, 05 May 2010 19:11:51 -0300, MauricioF <mauricio.fara...@ioko.com>
wrote:
Caused by: org.apache.tapestry5.ioc.internal.OperationException: Service
interface org.apache.tapestry5.internal.services.PageTemplateLocator is
matched by 2 services: PageTemplateLocator, PageTemplateLocatorFileBased.
Try not adding PageTemplateLocatorFileBased is a service to avoid that
problem. Inject ObjectLocator and use its autobuild() method to create and
instance of your object.
An alternative can be decorate the service (ignoring whatever it does
and my small bits of logic
to return a resouce based in the FileSystem) but I´d rather do it using
overriding.
Decorating would have the advantage of loading from the file system just
the templates you need, leaving the other ones (such as the templates of
components provided by Tapestry) being loaded normally.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org