wicket-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Thomerson (JIRA)" <j...@apache.org>
Subject [jira] Updated: (WICKET-3303) Use "META-INF/resources" (when available) to serve static resources
Date Sun, 16 Jan 2011 03:26:46 GMT

     [ https://issues.apache.org/jira/browse/WICKET-3303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Jeremy Thomerson updated WICKET-3303:

    Fix Version/s:     (was: 1.5-RC2)

changing fix version to 1.5-rc1 (despite being shown as "released") since that will be rebuilt

> Use "META-INF/resources" (when available) to serve static resources
> -------------------------------------------------------------------
>                 Key: WICKET-3303
>                 URL: https://issues.apache.org/jira/browse/WICKET-3303
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 1.5-M3
>            Reporter: Attila Király
>            Assignee: Juergen Donnerstag
>             Fix For: 1.5-RC1
>         Attachments: WICKET-3303.patch
> Servlet 3.0 introduced a new feature: files placed under the "META-INF/resources" folder
inside of a jar in the "/WEB-INF/lib" folder are served by the container in the same way as
other static files. I made a speed test and it showed that Tomcat 7.0.5 serves files from
this location 2-3 times faster than wicket with its own method.
> So it could be beneficial for wicket if it supported this when running on a Servlet 3.0
engine. I think this should be made in wicket itself (and not as an external module) because
so wicket could use it too and implementing it could need some specific hooks.
> An implementation could roughly include the followings:
> - a new ResourceReference subtype so users can choose to use this type of resource handling
for their bundled static files
> - logic that generates different urls for the new ResourceReference subtype based on
if it is running on Servlet 3.0 engine (no need for "wicket/resource/" prefix, example url:
"org/apache/wicket/extensions/yui/yuiloader/yuiloader-min.js") or it is running on older engines
(url would be the same as now: "wicket/resource/org.apache.wicket.extensions.yui.YuiLib/yuiloader/yuiloader-min.js")
> - logic that finds the resource even if it is on the "META-INF/resources/" prefixed classpath.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message