Here the correct code:
public class TemplateSourceDelegate implements ITemplateSourceDelegate {
/**
* Method called by Tapestry when it is unable to find the template of a
component or a page
*/
public ComponentTemplate findTemplate(IRequestCycle cycle, IComponent
component
Hello,
It seems nobody has ever been able to implement the ITemplateSourceDelegate
interface.
Does it mean that it is simply not possible ?
I tried to implement this interface but as others people, I got a
NullPointerException in the method TemplateParser.addTextToken().
Here my code:
public
(new DescribedLocation(
>spec.getSpecificationLocation(), ""));
>spec.addAsset("$template", aspec);
>
>//return the specification
>return spec;
>
>}
>
>public IComponentSpecification findComponentSpec
Specification(
IRequestCycle cycle, INamespace namespace, String type) {
return null;
}
}
On 10/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Has someone a working example of an ITemplateSourceDelegate
> or or a PageSpecificationResolverImpl ? I ca
> Has someone a working example of an ITemplateSourceDelegate
> or or a PageSpecificationResolverImpl ? I can't find any.
> I only want to have a .class for each page and in the same
> package the html template. All .page configuration will be
> set using annotations.
>
Has someone a working example of an ITemplateSourceDelegate or or a
PageSpecificationResolverImpl ? I can't find any.
I only want to have a .class for each page and in the same package the html
template. All .page configuration will be set using annotations.
Thanks !!