Hello Andrea,
i just have tried to use ContextRelativeResourceReference
The CSS is being loaded with minification which is great
But unfortunately images located in css folder are not being found :(
example
/css/theme.css
background-image:url(images/image1.png)
/css/images/image1.png
so it is not very useful right now :(
On Mon, Jul 31, 2017 at 7:48 PM, Andrea Del Bene <[email protected]>
wrote:
> I was about to suggest the same classes :-)
>
> On Mon, Jul 31, 2017 at 1:08 PM, Vit Rozkovec <[email protected]>
> wrote:
>
> > Hi,
> > have a look at those classes:
> >
> > ContextRelativeResource
> > ContextRelativeResourceReference
> >
> > Vit
> >
> >
> > On 07/31/2017 01:01 PM, lucast wrote:
> >
> >> Thank you, Maxim.
> >>
> >> Since I am managing all css files and js files form my java class, I was
> >> wondering if there is an equivalent to the HTML of <link
> rel="stylesheet"
> >> href="css/style.css" ... that one could use from the java class.
> >>
> >> The only motivation is to try to manage as much as I can from the class,
> >> and
> >> keep the HMTL to a bare minimum.
> >>
> >> I can have a css file that lives alongside the java class, I just
> thought
> >> that it would be nice to have all css files under a single location,
> under
> >> webapp file. However, this is more of a Would-Like-To-Have than anything
> >> else.
> >>
> >> Thanks once more,
> >>
> >> --
> >> View this message in context: http://apache-wicket.1842946.n
> >> 4.nabble.com/using-CssResourceReference-for-css-file-that-
> >> lives-in-webapp-tp4678358p4678360.html
> >> Sent from the Users forum mailing list archive at Nabble.com.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
--
WBR
Maxim aka solomax