[
https://issues.apache.org/jira/browse/WICKET-6669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16846051#comment-16846051
]
Claudia Hirt commented on WICKET-6669:
--------------------------------------
Thanks for the quick reply. Heres the quickstart application:
[https://github.com/sunshineKE/wicketResourceBundle]
> CSS Resource Bundling throws exception when used with CssUrlReplacer
> --------------------------------------------------------------------
>
> Key: WICKET-6669
> URL: https://issues.apache.org/jira/browse/WICKET-6669
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 7.10.0
> Reporter: Claudia Hirt
> Priority: Major
>
> Using CssUrlReplacer as compressor and trying to create a Css Resource bundle
> like this:
> {code:java}
> getResourceSettings().setCssCompressor(new CssUrlReplacer());
> getResourceBundles().addCssBundle(WicketApplication.class, "testBundle", new
> CssResourceReference(WicketApplication.class, "css/cssFile1.css"), new
> CssResourceReference(WicketApplication.class, "css/cssFile2.css"));{code}
> I get the following stack trace when requesting one of the css files:
> Caused by: java.lang.UnsupportedOperationException: CssUrlReplacer.process()
> should be used instead!
> at
> org.apache.wicket.resource.CssUrlReplacer.compress(CssUrlReplacer.java:159)
> ~[wicket-core-7.10.0.jar:7.10.0]
> at
> org.apache.wicket.resource.bundles.ConcatBundleResource.readAllResources(ConcatBundleResource.java:184)
> ~[wicket-core-7.10.0.jar:7.10.0]
> ....
> ConcatBundleResource calls the compress method of CssUrlReplacer which throws
> the exception.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)