Could you open up a feature request for it?
Eelco
Jan Bares wrote:
getServletContext().getMimeType("java.css"); //returns text/css
getServletContext().getMimeType("java.js"); //returns
application/x-javascript
The UrlResourceStream should use this function.
I hope this will be fixed for Wicket 1.1 final, for me it is a showstopper
bug.
Jan
"Johan Compagner" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
yes i know.
The web.xml is full of it. But i want to read it in for myself
So that i can look up the mine-type for any extention i have.
Setting in the web.xml doesn't help me.
all of our Resources are static. And we are sending out the contenttype
and contentlengt.
For images this goes fine because the URLHandler has those in its map
but for CSS or JS files it returns unknown or null.
So for those files/resources the url doesn't return anything usefull and
i want to lookup the content
type based on the url's file extention. But as far as i see now i have
to build the map myself
But i don't want to do that and maintain that because it's all already
defined in the default web.xml file....
johan
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop