On Tue, 01 Jul 2014 17:16:57 -0300, Net Dawg
wrote:
Is there an example of this? Meanwhile I found this nugget in SO:
http://stackoverflow.com/questions/19301034/how-to-get-the-asset-path-in-tapestry-5
The best approach I've seen (but not used, because I hate putting assets
in the fil
OK - figured it out. Thanks, Chris, for the tip. Here is the example (using
itext for pdf):
if (StringUtils.isNotBlank(logoFile))
{
try
{
Asset logoAss =
assetSource.getClasspathAsset("context:layout/images/" +
StringUtils.trim
Is there an example of this? Meanwhile I found this nugget in SO:
http://stackoverflow.com/questions/19301034/how-to-get-the-asset-path-in-tapestry-5
On Tuesday, July 1, 2014 9:25 AM, Chris Poulsen wrote:
Inject AssetSource and set up things programmatically ?
--
Chris
On Tue, Ju
Inject AssetSource and set up things programmatically ?
--
Chris
On Tue, Jul 1, 2014 at 8:58 PM, Net Dawg wrote:
> How can I import an image into page class (without advance knowledge of
> its name)? I would like to use it to stream PDF dynamically.
>
> According to Assets in Component Class
How can I import an image into page class (without advance knowledge of its
name)? I would like to use it to stream PDF dynamically.
According to Assets in Component
Classes(http://tapestry.apache.org/assets.html), components learn about assets
via injection. The @Inject annotation allows As