You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Barry Books <tr...@gmail.com> on 2013/09/12 15:31:24 UTC
5.4 META-INF asset for dynamic template question
I have a component that uses a dynamic template. The code is
@Parameter
@Property
*private* Asset template;
@Inject
@Path("CartItemTemplate.tml")
*private* Asset defaultTemplate;
@BeginRender
*void* beginRender() {
*if* ( template == *null* ) {
template = defaultTemplate;
}
}
With 5.4 I get the following message:
[ERROR] AssetsModule.AssetSource Classpath asset
'/com/trsvax/shop/components/CartItemTemplate.tml' should be moved under
folder '/META-INF/assets/shop/', and the relative path adjusted.
It's not clear to me I want this template in META-INF. While it's an Asset
it's not really meant for public consumption. Any suggestions?