Hi,
The method signature is:
ResourceBundles#addCssBundle(Class<?> scope, String
name, CssResourceReference... references)
I.e. the 'scope' is uses as ... as scope.
So you can use any Class that will fit your needs.
com.example
- MyClass
- res/css/{a,b,c}.css
- res/images/{d,e,f}.png
then use addCssBundle(MyClass.class, "bundle.css", references)
On Wed, Oct 2, 2013 at 11:05 AM, Marcel Hoerr <[email protected]> wrote:
> hi wicket community!
>
> i have a question regarding the usage of ResourceBundles. consider the
> following use case:
> i want to add a ResourceBundle in my wicketapplication class with a css
> file (and some relative paths to images/fonts in it). right now i add the
> ResourceBundle with application scope.
> all relative paths in the css file are not resolved from their scope but
> from application scope (which leads to ClassNotFoundExceptions). is this
> expected behavior?
>
> i'm using wicket 6.10.
>
> best regards
>
> marcel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>