Never mind. During our ant build we accidentially tried to "replace filter" all files, instead of only text files. So ANT corrupted the gif files, not our beloved web application framework ;-)
-----Original Message----- From: Thannhäuser, Marcel [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 2:19 PM To: [email protected] Subject: Private asset problem Hi! I have a problem using private assets in my application, especially when they are gif images. The symptoms are as following: - Some Images get completely destroyed, and the Browser behaves like there's no image present. - Some Images seem to be corrupted "only", so they don't appear in the browser like they are contained in the jar. - Some Images are shown correctly. Images are set as private assets in the components jwc file. In my template I don't use the @Image component, but an @Any rendering as an <img> tag, src attribute set to the asset's url. This assets' url is generated in my component class like this: public String getAssetURL(String name) { IAsset asset = getAsset(name); if (asset == null) return null; return asset.buildURL(getPage().getRequestCycle()); } The same way I dynamically create asset urls in a script file to change images on the fly. ${mycomponent.getAssetURL('ANAME')} I allready debuged the whole way from the call of getAssetURL(name) until the end doget() in my ApplicationServlet. Everything seems to be fine, yet some images behave like explained above. The most funny thing is, that if I use context assets instead, all images behave completely correct. Thanx Marcel --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
