Alan Chandler <alan <at> chandlerfamily.org.uk> writes:
> Essentially what I am trying to do is build a component, which has image and
> style sheet assets embedded within it (in subdirectores styles and images
> relative to the component java class file). I am seeing how far I can get
> without a component specification by using annotations in the class file.
>
> This component will then be placed in a library.
Try:
class MyComponent {
@Asset("classpath:images/001.gif")
public abstract IAsset getMyAsset();
}
There is such an example in chapter 6 of my book (but it uses <asset>, not
@Asset).
--
Author of an e-Book for learning Tapestry (http://www.agileskills2.org/EWDT)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]