[ 
https://issues.apache.org/jira/browse/WICKET-3674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13029932#comment-13029932
 ] 

Martin Grigorov commented on WICKET-3674:
-----------------------------------------

With r1100209 I introduced ICssCompressor which is used by CssPackageResource 
and CssTemplate.
Currently the API in IResourceSettings doesn't allow to use 
IJavaScriptCompressor as ICssCompressor. This can be improved. I have no 
experience with compressors but I think the same compressor can be used for 
both .css and .js resources.
Currently you can provide an ICssCompressor which delegates to 
DefaultJavaScriptCompressor.
Please take a look in the commit and give feedback.
I'm going to cut RC4 this weekend so if you see any improvements please let us 
know.

> Provide an interface to allow css resources to be compressed like javascript 
> resources
> --------------------------------------------------------------------------------------
>
>                 Key: WICKET-3674
>                 URL: https://issues.apache.org/jira/browse/WICKET-3674
>             Project: Wicket
>          Issue Type: New Feature
>          Components: wicket-core
>    Affects Versions: 1.5-RC3
>            Reporter: Hielke Hoeve
>            Assignee: Martin Grigorov
>            Priority: Minor
>              Labels: compress, javascript, resource, stylesheet
>
> Wicket provides a nice interface to compress JavaScript resources. WiQuery 
> provides the YUICompressor implementation, which works really well. However 
> there is no way to compress users their CSS resources. Wicket acts if there 
> can only be JavaScript and no CSS and all JavaScript compressor 
> implementations will fail when something else than JavaScript is given to 
> them. In Wicket 1.4 the call happened in JavaScriptPackageResource and CSS 
> resources were omitted all together, but in 1.5 
> JavaScriptPackageResourceReference is just a façade and all resources are 
> treated the same...

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to