Why is this? I believe the content type is get from the URL content type mapping So if it comes from a jar then it is suddenly a jpeg.. thats strange.
johan
Juergen Donnerstag wrote:
Resource.onResourceRequested() does already set the content type with resourceStream.getContentType() but UrlResourceStream obviously behaves differently on url like file:/D:/.../pub/Beer.gif compared to jar:file:/D:/.../wicket-examples.war!/WEB-INF/.../pub/Beer.gif. Whereas the first returns a content type of image/gif the latter returns image/jpeg.
Juergen
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
