Description
Using CssUrlReplacer as compressor and trying to create a Css Resource bundle like this:
getResourceSettings().setCssCompressor(new CssUrlReplacer()); getResourceBundles().addCssBundle(WicketApplication.class, "testBundle", new CssResourceReference(WicketApplication.class, "css/cssFile1.css"), new CssResourceReference(WicketApplication.class, "css/cssFile2.css"));
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.
Attachments
Issue Links
- causes
-
WICKET-6860 ConcatBundleResource double scope processing when CssUrlReplacer is used
- Resolved
- is caused by
-
WICKET-5827 Allow to apply multiple Javascript / CSS compressors
- Resolved
- is duplicated by
-
WICKET-6611 Missing check for IScopeAwareTextResourceProcessor when concatenating resources
- Resolved