public interface ITemplateSourceDelegate
TemplateSource
,
providing access to page and component templates after the normal search mechanisms have failed.
The delegate must be threadsafe.
TemplateSourceImpl
Modifier and Type | Method and Description |
---|---|
ComponentTemplate |
findTemplate(IRequestCycle cycle,
IComponent component,
java.util.Locale locale)
Invoked by the
ITemplateSource when a template can't be found
by normal means (i.e., in the normal locations). |
ComponentTemplate findTemplate(IRequestCycle cycle, IComponent component, java.util.Locale locale)
ITemplateSource
when a template can't be found
by normal means (i.e., in the normal locations). This method
should find the template. The result may be null. The delegate
is responsible for caching the result.cycle
- for access to Tapestry and Servlet API objectscomponent
- component (or page) for which a template is neededlocale
- the desired locale for the template