You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Claudia Hirt (JIRA)" <ji...@apache.org> on 2019/05/22 14:58:00 UTC

[jira] [Created] (WICKET-6669) CSS Resource Bundling throws exception when used with CssUrlReplacer

Claudia Hirt created WICKET-6669:
------------------------------------

             Summary: 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


Using CssUrlReplacer as comporessor 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:

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)