From: Alex Twisleton-Wykeham-F. <al...@fi...> - 2005-03-11 16:33:43
|
On Friday 11 March 2005 16:21, Marc Palmer wrote: > Alex Twisleton-Wykeham-Fiennes wrote: > > On Friday 11 March 2005 15:57, Marc Palmer wrote: > >>>Two questions:- > >>> > >>>1. what package did you put your StringTemplateLoader class into? > >> > >>package org.webmacro.resource; > > > > OK. maybe put the following into your StringTemplateLoader:- > > Yep it is loading, and setConfig gets called. > > However load() is never called. very odd. > More info - my content in the previous example was empty. I changed the > template to do this: > > > #include as template "string:testing" > > And the error is: > > 16:15:38 resource WARNING BrokerTemplateProvider: Template not found: > string:testing > org.webmacro.ignition.cms.ViewEngineException: > org.webmacro.PropertyException: #include string:testing: Not found by > template provider > > So for some reason the string: handler is being overlooked and its just > using the Broker which of course fails. > > DelegatingTemplateProvider.load is not being called either. Odd. if DelegatingTemplateProvider.load isn't being invoked then I wouldn't expect the StringTemplateProvider to be invoked as the BrokerTemplateProvider will not know about it. Maybe it is something to do with the BrokerTemplateProvider being a little bit aggressive and messing with DelegatingTemplateProvider? It looks like it has actually replaced DelegatingTemplateProvider as the Provider for the system (which might be a bug). Can you try using a different implementation of TemplateLoader other than "broker" as your secondary loader and see if that makes any difference? Alex |