tapestry-user@jakarta.apache.org
[Top] [All Lists]

Re: accessing component private asset

Subject: Re: accessing component private asset
From: ron
Date: Wed, 02 Mar 2005 13:21:26 +0100
OK - The NullPointerException is coming from the body reference and not from the Asset, which is actually being referenced...
Sorry...


××××× Ron:

In my .jwc I have:
<private-asset name="js" resource-path="script.js"/>

in my components class, I access the asset:

IAsset script = getAsset("js");

but I get null.

The script.js is on the same directory as the .jwc inside a library on the classpath.

How do I access the private asset?

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx




---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>