Great, that worked, thanks.


public EmailTemplate buildEmailTemplate(@Inject AssetSource assetSource)
throws IOException {
        Asset asset = assetSource.getContextAsset("/templates/billing.stg", new
Locale("en"));
        EmailTemplate emailTemplate = new
EmailTemplate(asset.getResource().openStream());
        return emailTemplate;
}


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-get-resource-handle-in-AppModule-java-tp5078761p5078787.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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

Reply via email to