You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Pablo Ruggia <pr...@gmail.com> on 2006/10/12 14:58:25 UTC

$template Asset

Hi !!

I'm trying to determine the page template using an asset named $template.
I've tryied adding this to my pages:

@Asset("context:/pages/LoginResult.html")
public abstract IAsset get$template();

But I'm getting that the page doesn't exist. If I put the page in my context
dir, all works right.

Thanks !!

Re: $template Asset

Posted by Pablo Ruggia <pr...@gmail.com>.
Thanks !!

One more question: what do you do to add the $template asset in the
ISpecificationResolverDelegate ?


On 10/12/06, Andrei Chiritescu <an...@paragon-software.ro> wrote:
>
> I'm not sure that the $template asset works for pages, just components.
> To fix this I have implemented my own ISpecificationResolverDelegate.
>
> btw I'm using tap 4.0 so, not sure about tap4.1
>
> Regards,
> Andrei Chiritescu
>
> Pablo Ruggia wrote:
> > Hi !!
> >
> > I'm trying to determine the page template using an asset named
> $template.
> > I've tryied adding this to my pages:
> >
> > @Asset("context:/pages/LoginResult.html")
> > public abstract IAsset get$template();
> >
> > But I'm getting that the page doesn't exist. If I put the page in my
> > context
> > dir, all works right.
> >
> > Thanks !!
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: $template Asset

Posted by Andrei Chiritescu <an...@paragon-software.ro>.
I'm not sure that the $template asset works for pages, just components. 
To fix this I have implemented my own ISpecificationResolverDelegate.

btw I'm using tap 4.0 so, not sure about tap4.1

Regards,
Andrei Chiritescu

Pablo Ruggia wrote:
> Hi !!
>
> I'm trying to determine the page template using an asset named $template.
> I've tryied adding this to my pages:
>
> @Asset("context:/pages/LoginResult.html")
> public abstract IAsset get$template();
>
> But I'm getting that the page doesn't exist. If I put the page in my 
> context
> dir, all works right.
>
> Thanks !!
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org