Pages are components :) I've been successfully using the $template asset with my pages for awhile now, but I'm not sure it can be done using annotations as Pablo is attempting -- it'd be nice if the Asset annotation took a "name" parameter, as my naïve guess is that the dollar sign is breaking the JavaBean spec.
I've been putting "<asset name="$template" path="templates/inventory/AssetEdit.html" />" in my .page file, and declaring everything else in the page class using annotations. Jim -----Original Message----- From: Andrei Chiritescu [mailto:[EMAIL PROTECTED] Sent: Thursday, October 12, 2006 9:13 AM To: Tapestry users Subject: Re: $template Asset 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
