You can include this css in markup instead of java

On Mon, Jul 31, 2017 at 4:39 PM, lucast <[email protected]> wrote:
> Dear Forum,
> I'm implementing a base wicket page where I load all of my CSS and
> javascript.
>
> I'm loading files from java class by using
>
>
>
> Is there a way to load a css file that lives under the webapp folder
> directly from the java class?
> At the moment, I'm using
>
> response_.render( CssHeaderItem.forReference(new
> CssResourceReference(WicketBasePage.class, "mcc-style.css" ) ) );
>
> where mcc-style.css lives alongside my java class, and inside of the
> mcc-style.css, I have placed a very long reference to the css file that
> lives under webapp:
>
>
>
> Thanks in advance,
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/using-CssResourceReference-for-css-file-that-lives-in-webapp-tp4678358.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]
>



-- 
WBR
Maxim aka solomax

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to