Yep - thanks... This works: @Component(type = "components/Copyright") public abstract Copyright getCopyright();
> http://tapestry.apache.org/tapestry4.1/tapestry-annotations/index.html > > @Component > > On 5/24/07, Jan Vissers <[EMAIL PROTECTED]> wrote: >> >> Suppose I have a .page file containing the following component >> declaration: >> >> <component id="copyright" type="components/Copyright" /> >> >> The Copyright component (.page/.html) are both located relatively from >> the >> contextroot at 'components'. >> >> Now my question. I want to create a superclass that holds various common >> properties so that they can be easily (re)used in subclasses. I was >> thinking to use annotations for this purpose - but somehow have been >> unable to correctly identify the component. >> >> My intuition to specify this: >> >> @InjectComponent("copyright") >> public abstract Copyright getCopyright(); >> >> Didn't work... >> >> Any takers? >> >> Thanks, >> -J. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr > Tapestry / Tacos developer > Open Source / JEE Consulting > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]