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

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

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

Martin Grigorov resolved WICKET-6669.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 7.14.0
                   9.0.0-M2
                   8.5.0

> 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
>            Assignee: Martin Grigorov
>            Priority: Major
>             Fix For: 8.5.0, 9.0.0-M2, 7.14.0
>
>
> 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)