tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ron <ron.piter...@gmx.net>
Subject Re: accessing component private asset
Date Wed, 02 Mar 2005 12:21:26 GMT
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@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Mime
View raw message