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/22 15:06:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16845968#comment-16845968 ]
Martin Grigorov commented on WICKET-6669:
-----------------------------------------
Please create a quickstart application if you'd like this ticket to be reviewed before releasing 7.14.0 (this could happen any day now). Thank you!
> 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)