You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Richter, Marvin" <Ma...@jestadigital.com> on 2014/03/20 15:11:08 UTC
custom bootstrap stylesheet
Hi,
How do I use a customized Bootstrap CCS file in wicket-bootstrap?
I tried this:
new BootstrapSettings().setCssResourceReference(new PackageResourceReference(CcaWebApplication.class, "customized-bootstrap.css"));
Unfortunately getCssResourceReference will never be called, instead the reference from the DefaultThemeProvider will be used.
But I don't really want to write my own ThemeProvider just to replace the CssResourceReference
Best Regards,
Marvin Richter
Re: custom bootstrap stylesheet
Posted by Martin Grigorov <mg...@apache.org>.
I think it is OK to make API breaks now - we are still in less-than-1.0.0
so according to SemVer it is allowed.
Martin Grigorov
Wicket Training and Consulting
On Thu, Mar 20, 2014 at 6:03 PM, Richter, Marvin <
Marvin.Richter@jestadigital.com> wrote:
> Ok, I'll think about a better solution and will open a ticket.
>
> When will you expect your first final Major release?
> So maybe we could implement a better Configuration but with API breaks?
>
> Marvin Richter
>
>
> -----Original Message-----
> From: Martin Grigorov [mailto:mgrigorov@apache.org]
> Sent: Thursday, March 20, 2014 4:52 PM
> To: users@wicket.apache.org
> Subject: Re: custom bootstrap stylesheet
>
> I don't like it either but I see no other way at the moment.
> Feel free to file a ticket for improvement.
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Thu, Mar 20, 2014 at 5:47 PM, Richter, Marvin <
> Marvin.Richter@jestadigital.com> wrote:
>
> > So I do have to override DefaultThemeProvider and return a
> > BootstrapTheme(ISettings), where in Settings is my custom
> > CssResourceReference?
> >
> > And then set this ThemeProvider as activeThemeProvider in the Settings?
> >
> > That sounds really strange to me.
> >
> > Marvin Richter
> >
> >
> > -----Original Message-----
> > From: Martin Grigorov [mailto:mgrigorov@apache.org]
> > Sent: Thursday, March 20, 2014 3:35 PM
> > To: users@wicket.apache.org
> > Subject: Re: custom bootstrap stylesheet
> >
> > See https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/339 for an
> > example
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> >
> >
> > On Thu, Mar 20, 2014 at 4:29 PM, Richter, Marvin <
> > Marvin.Richter@jestadigital.com> wrote:
> >
> > > Where should I set this?
> > > The BootstrapSettings only provide the method :
> > > setThemeProvider(ThemeProvider t);
> > >
> > > but not:
> > > setTheme(Theme t);
> > >
> > > Marvin Richter
> > >
> > > -----Original Message-----
> > > From: Martin Grigorov [mailto:mgrigorov@apache.org]
> > > Sent: Thursday, March 20, 2014 3:23 PM
> > > To: users@wicket.apache.org
> > > Subject: Re: custom bootstrap stylesheet
> > >
> > > Hi,
> > >
> > > Set BootstrapTheme(IBootstrapSettings) as a default theme.
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > >
> > >
> > > On Thu, Mar 20, 2014 at 4:11 PM, Richter, Marvin <
> > > Marvin.Richter@jestadigital.com> wrote:
> > >
> > > > Hi,
> > > >
> > > > How do I use a customized Bootstrap CCS file in wicket-bootstrap?
> > > >
> > > > I tried this:
> > > > new BootstrapSettings().setCssResourceReference(new
> > > > PackageResourceReference(CcaWebApplication.class,
> > > > "customized-bootstrap.css"));
> > > >
> > > > Unfortunately getCssResourceReference will never be called,
> > > > instead the reference from the DefaultThemeProvider will be used.
> > > >
> > > > But I don't really want to write my own ThemeProvider just to
> > > > replace the CssResourceReference
> > > >
> > > > Best Regards,
> > > >
> > > > Marvin Richter
> > > >
> > > >
> > >
> >
>
RE: custom bootstrap stylesheet
Posted by "Richter, Marvin" <Ma...@jestadigital.com>.
Ok, I'll think about a better solution and will open a ticket.
When will you expect your first final Major release?
So maybe we could implement a better Configuration but with API breaks?
Marvin Richter
-----Original Message-----
From: Martin Grigorov [mailto:mgrigorov@apache.org]
Sent: Thursday, March 20, 2014 4:52 PM
To: users@wicket.apache.org
Subject: Re: custom bootstrap stylesheet
I don't like it either but I see no other way at the moment.
Feel free to file a ticket for improvement.
Martin Grigorov
Wicket Training and Consulting
On Thu, Mar 20, 2014 at 5:47 PM, Richter, Marvin < Marvin.Richter@jestadigital.com> wrote:
> So I do have to override DefaultThemeProvider and return a
> BootstrapTheme(ISettings), where in Settings is my custom
> CssResourceReference?
>
> And then set this ThemeProvider as activeThemeProvider in the Settings?
>
> That sounds really strange to me.
>
> Marvin Richter
>
>
> -----Original Message-----
> From: Martin Grigorov [mailto:mgrigorov@apache.org]
> Sent: Thursday, March 20, 2014 3:35 PM
> To: users@wicket.apache.org
> Subject: Re: custom bootstrap stylesheet
>
> See https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/339 for an
> example
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Thu, Mar 20, 2014 at 4:29 PM, Richter, Marvin <
> Marvin.Richter@jestadigital.com> wrote:
>
> > Where should I set this?
> > The BootstrapSettings only provide the method :
> > setThemeProvider(ThemeProvider t);
> >
> > but not:
> > setTheme(Theme t);
> >
> > Marvin Richter
> >
> > -----Original Message-----
> > From: Martin Grigorov [mailto:mgrigorov@apache.org]
> > Sent: Thursday, March 20, 2014 3:23 PM
> > To: users@wicket.apache.org
> > Subject: Re: custom bootstrap stylesheet
> >
> > Hi,
> >
> > Set BootstrapTheme(IBootstrapSettings) as a default theme.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> >
> >
> > On Thu, Mar 20, 2014 at 4:11 PM, Richter, Marvin <
> > Marvin.Richter@jestadigital.com> wrote:
> >
> > > Hi,
> > >
> > > How do I use a customized Bootstrap CCS file in wicket-bootstrap?
> > >
> > > I tried this:
> > > new BootstrapSettings().setCssResourceReference(new
> > > PackageResourceReference(CcaWebApplication.class,
> > > "customized-bootstrap.css"));
> > >
> > > Unfortunately getCssResourceReference will never be called,
> > > instead the reference from the DefaultThemeProvider will be used.
> > >
> > > But I don't really want to write my own ThemeProvider just to
> > > replace the CssResourceReference
> > >
> > > Best Regards,
> > >
> > > Marvin Richter
> > >
> > >
> >
>
Re: custom bootstrap stylesheet
Posted by Martin Grigorov <mg...@apache.org>.
I don't like it either but I see no other way at the moment.
Feel free to file a ticket for improvement.
Martin Grigorov
Wicket Training and Consulting
On Thu, Mar 20, 2014 at 5:47 PM, Richter, Marvin <
Marvin.Richter@jestadigital.com> wrote:
> So I do have to override DefaultThemeProvider and return a
> BootstrapTheme(ISettings), where in Settings is my custom
> CssResourceReference?
>
> And then set this ThemeProvider as activeThemeProvider in the Settings?
>
> That sounds really strange to me.
>
> Marvin Richter
>
>
> -----Original Message-----
> From: Martin Grigorov [mailto:mgrigorov@apache.org]
> Sent: Thursday, March 20, 2014 3:35 PM
> To: users@wicket.apache.org
> Subject: Re: custom bootstrap stylesheet
>
> See https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/339 for an
> example
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Thu, Mar 20, 2014 at 4:29 PM, Richter, Marvin <
> Marvin.Richter@jestadigital.com> wrote:
>
> > Where should I set this?
> > The BootstrapSettings only provide the method :
> > setThemeProvider(ThemeProvider t);
> >
> > but not:
> > setTheme(Theme t);
> >
> > Marvin Richter
> >
> > -----Original Message-----
> > From: Martin Grigorov [mailto:mgrigorov@apache.org]
> > Sent: Thursday, March 20, 2014 3:23 PM
> > To: users@wicket.apache.org
> > Subject: Re: custom bootstrap stylesheet
> >
> > Hi,
> >
> > Set BootstrapTheme(IBootstrapSettings) as a default theme.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> >
> >
> > On Thu, Mar 20, 2014 at 4:11 PM, Richter, Marvin <
> > Marvin.Richter@jestadigital.com> wrote:
> >
> > > Hi,
> > >
> > > How do I use a customized Bootstrap CCS file in wicket-bootstrap?
> > >
> > > I tried this:
> > > new BootstrapSettings().setCssResourceReference(new
> > > PackageResourceReference(CcaWebApplication.class,
> > > "customized-bootstrap.css"));
> > >
> > > Unfortunately getCssResourceReference will never be called, instead
> > > the reference from the DefaultThemeProvider will be used.
> > >
> > > But I don't really want to write my own ThemeProvider just to
> > > replace the CssResourceReference
> > >
> > > Best Regards,
> > >
> > > Marvin Richter
> > >
> > >
> >
>
RE: custom bootstrap stylesheet
Posted by "Richter, Marvin" <Ma...@jestadigital.com>.
Thanks ... but still I find it too complicated to just use my custom css.
I mean the Theme thingy is ok and makes sense but why wrapping this with an extra theme provider?
And why having an api method setCssResource when it's never called? Quite confusing isn't it?
Best Regards,
Marvin Richter
-----Original Message-----
From: Michael Haitz [mailto:michael.haitz@1und1.de]
Sent: Friday, March 21, 2014 12:15 PM
To: users@wicket.apache.org
Subject: Re: custom bootstrap stylesheet
it's a bit simpler... ;)
class CcaTheme extends Theme {
public CcaTheme() {
super("cca-theme", new PackageResourceReference(CcaWebApplication.class, "customized-bootstrap.css"));
}
}
and during application initialization:
settings.setThemeProvider(new SingleThemeProvider(new CcaTheme())); Bootstrap.install(this, settings);
cheers,
Michael
Am 20.03.2014 um 16:47 schrieb Richter, Marvin <Ma...@jestadigital.com>:
> So I do have to override DefaultThemeProvider and return a BootstrapTheme(ISettings), where in Settings is my custom CssResourceReference?
>
> And then set this ThemeProvider as activeThemeProvider in the Settings?
>
> That sounds really strange to me.
>
> Marvin Richter
>
>
> -----Original Message-----
> From: Martin Grigorov [mailto:mgrigorov@apache.org]
> Sent: Thursday, March 20, 2014 3:35 PM
> To: users@wicket.apache.org
> Subject: Re: custom bootstrap stylesheet
>
> See https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/339 for an
> example
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Thu, Mar 20, 2014 at 4:29 PM, Richter, Marvin < Marvin.Richter@jestadigital.com> wrote:
>
>> Where should I set this?
>> The BootstrapSettings only provide the method :
>> setThemeProvider(ThemeProvider t);
>>
>> but not:
>> setTheme(Theme t);
>>
>> Marvin Richter
>>
>> -----Original Message-----
>> From: Martin Grigorov [mailto:mgrigorov@apache.org]
>> Sent: Thursday, March 20, 2014 3:23 PM
>> To: users@wicket.apache.org
>> Subject: Re: custom bootstrap stylesheet
>>
>> Hi,
>>
>> Set BootstrapTheme(IBootstrapSettings) as a default theme.
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>>
>>
>> On Thu, Mar 20, 2014 at 4:11 PM, Richter, Marvin <
>> Marvin.Richter@jestadigital.com> wrote:
>>
>>> Hi,
>>>
>>> How do I use a customized Bootstrap CCS file in wicket-bootstrap?
>>>
>>> I tried this:
>>> new BootstrapSettings().setCssResourceReference(new
>>> PackageResourceReference(CcaWebApplication.class,
>>> "customized-bootstrap.css"));
>>>
>>> Unfortunately getCssResourceReference will never be called, instead
>>> the reference from the DefaultThemeProvider will be used.
>>>
>>> But I don't really want to write my own ThemeProvider just to
>>> replace the CssResourceReference
>>>
>>> Best Regards,
>>>
>>> Marvin Richter
>>>
>>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: custom bootstrap stylesheet
Posted by Michael Haitz <mi...@1und1.de>.
it’s a bit simpler… ;)
class CcaTheme extends Theme {
public CcaTheme() {
super(„cca-theme“, new PackageResourceReference(CcaWebApplication.class, "customized-bootstrap.css"));
}
}
and during application initialization:
settings.setThemeProvider(new SingleThemeProvider(new CcaTheme()));
Bootstrap.install(this, settings);
cheers,
Michael
Am 20.03.2014 um 16:47 schrieb Richter, Marvin <Ma...@jestadigital.com>:
> So I do have to override DefaultThemeProvider and return a BootstrapTheme(ISettings), where in Settings is my custom CssResourceReference?
>
> And then set this ThemeProvider as activeThemeProvider in the Settings?
>
> That sounds really strange to me.
>
> Marvin Richter
>
>
> -----Original Message-----
> From: Martin Grigorov [mailto:mgrigorov@apache.org]
> Sent: Thursday, March 20, 2014 3:35 PM
> To: users@wicket.apache.org
> Subject: Re: custom bootstrap stylesheet
>
> See https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/339 for an example
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Thu, Mar 20, 2014 at 4:29 PM, Richter, Marvin < Marvin.Richter@jestadigital.com> wrote:
>
>> Where should I set this?
>> The BootstrapSettings only provide the method :
>> setThemeProvider(ThemeProvider t);
>>
>> but not:
>> setTheme(Theme t);
>>
>> Marvin Richter
>>
>> -----Original Message-----
>> From: Martin Grigorov [mailto:mgrigorov@apache.org]
>> Sent: Thursday, March 20, 2014 3:23 PM
>> To: users@wicket.apache.org
>> Subject: Re: custom bootstrap stylesheet
>>
>> Hi,
>>
>> Set BootstrapTheme(IBootstrapSettings) as a default theme.
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>>
>>
>> On Thu, Mar 20, 2014 at 4:11 PM, Richter, Marvin <
>> Marvin.Richter@jestadigital.com> wrote:
>>
>>> Hi,
>>>
>>> How do I use a customized Bootstrap CCS file in wicket-bootstrap?
>>>
>>> I tried this:
>>> new BootstrapSettings().setCssResourceReference(new
>>> PackageResourceReference(CcaWebApplication.class,
>>> "customized-bootstrap.css"));
>>>
>>> Unfortunately getCssResourceReference will never be called, instead
>>> the reference from the DefaultThemeProvider will be used.
>>>
>>> But I don't really want to write my own ThemeProvider just to
>>> replace the CssResourceReference
>>>
>>> Best Regards,
>>>
>>> Marvin Richter
>>>
>>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: custom bootstrap stylesheet
Posted by "Richter, Marvin" <Ma...@jestadigital.com>.
So I do have to override DefaultThemeProvider and return a BootstrapTheme(ISettings), where in Settings is my custom CssResourceReference?
And then set this ThemeProvider as activeThemeProvider in the Settings?
That sounds really strange to me.
Marvin Richter
-----Original Message-----
From: Martin Grigorov [mailto:mgrigorov@apache.org]
Sent: Thursday, March 20, 2014 3:35 PM
To: users@wicket.apache.org
Subject: Re: custom bootstrap stylesheet
See https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/339 for an example
Martin Grigorov
Wicket Training and Consulting
On Thu, Mar 20, 2014 at 4:29 PM, Richter, Marvin < Marvin.Richter@jestadigital.com> wrote:
> Where should I set this?
> The BootstrapSettings only provide the method :
> setThemeProvider(ThemeProvider t);
>
> but not:
> setTheme(Theme t);
>
> Marvin Richter
>
> -----Original Message-----
> From: Martin Grigorov [mailto:mgrigorov@apache.org]
> Sent: Thursday, March 20, 2014 3:23 PM
> To: users@wicket.apache.org
> Subject: Re: custom bootstrap stylesheet
>
> Hi,
>
> Set BootstrapTheme(IBootstrapSettings) as a default theme.
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Thu, Mar 20, 2014 at 4:11 PM, Richter, Marvin <
> Marvin.Richter@jestadigital.com> wrote:
>
> > Hi,
> >
> > How do I use a customized Bootstrap CCS file in wicket-bootstrap?
> >
> > I tried this:
> > new BootstrapSettings().setCssResourceReference(new
> > PackageResourceReference(CcaWebApplication.class,
> > "customized-bootstrap.css"));
> >
> > Unfortunately getCssResourceReference will never be called, instead
> > the reference from the DefaultThemeProvider will be used.
> >
> > But I don't really want to write my own ThemeProvider just to
> > replace the CssResourceReference
> >
> > Best Regards,
> >
> > Marvin Richter
> >
> >
>
Re: custom bootstrap stylesheet
Posted by Martin Grigorov <mg...@apache.org>.
See https://github.com/l0rdn1kk0n/wicket-bootstrap/issues/339 for an example
Martin Grigorov
Wicket Training and Consulting
On Thu, Mar 20, 2014 at 4:29 PM, Richter, Marvin <
Marvin.Richter@jestadigital.com> wrote:
> Where should I set this?
> The BootstrapSettings only provide the method :
> setThemeProvider(ThemeProvider t);
>
> but not:
> setTheme(Theme t);
>
> Marvin Richter
>
> -----Original Message-----
> From: Martin Grigorov [mailto:mgrigorov@apache.org]
> Sent: Thursday, March 20, 2014 3:23 PM
> To: users@wicket.apache.org
> Subject: Re: custom bootstrap stylesheet
>
> Hi,
>
> Set BootstrapTheme(IBootstrapSettings) as a default theme.
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Thu, Mar 20, 2014 at 4:11 PM, Richter, Marvin <
> Marvin.Richter@jestadigital.com> wrote:
>
> > Hi,
> >
> > How do I use a customized Bootstrap CCS file in wicket-bootstrap?
> >
> > I tried this:
> > new BootstrapSettings().setCssResourceReference(new
> > PackageResourceReference(CcaWebApplication.class,
> > "customized-bootstrap.css"));
> >
> > Unfortunately getCssResourceReference will never be called, instead
> > the reference from the DefaultThemeProvider will be used.
> >
> > But I don't really want to write my own ThemeProvider just to replace
> > the CssResourceReference
> >
> > Best Regards,
> >
> > Marvin Richter
> >
> >
>
RE: custom bootstrap stylesheet
Posted by "Richter, Marvin" <Ma...@jestadigital.com>.
Where should I set this?
The BootstrapSettings only provide the method :
setThemeProvider(ThemeProvider t);
but not:
setTheme(Theme t);
Marvin Richter
-----Original Message-----
From: Martin Grigorov [mailto:mgrigorov@apache.org]
Sent: Thursday, March 20, 2014 3:23 PM
To: users@wicket.apache.org
Subject: Re: custom bootstrap stylesheet
Hi,
Set BootstrapTheme(IBootstrapSettings) as a default theme.
Martin Grigorov
Wicket Training and Consulting
On Thu, Mar 20, 2014 at 4:11 PM, Richter, Marvin < Marvin.Richter@jestadigital.com> wrote:
> Hi,
>
> How do I use a customized Bootstrap CCS file in wicket-bootstrap?
>
> I tried this:
> new BootstrapSettings().setCssResourceReference(new
> PackageResourceReference(CcaWebApplication.class,
> "customized-bootstrap.css"));
>
> Unfortunately getCssResourceReference will never be called, instead
> the reference from the DefaultThemeProvider will be used.
>
> But I don't really want to write my own ThemeProvider just to replace
> the CssResourceReference
>
> Best Regards,
>
> Marvin Richter
>
>
Re: custom bootstrap stylesheet
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
Set BootstrapTheme(IBootstrapSettings) as a default theme.
Martin Grigorov
Wicket Training and Consulting
On Thu, Mar 20, 2014 at 4:11 PM, Richter, Marvin <
Marvin.Richter@jestadigital.com> wrote:
> Hi,
>
> How do I use a customized Bootstrap CCS file in wicket-bootstrap?
>
> I tried this:
> new BootstrapSettings().setCssResourceReference(new
> PackageResourceReference(CcaWebApplication.class,
> "customized-bootstrap.css"));
>
> Unfortunately getCssResourceReference will never be called, instead the
> reference from the DefaultThemeProvider will be used.
>
> But I don't really want to write my own ThemeProvider just to replace the
> CssResourceReference
>
> Best Regards,
>
> Marvin Richter
>
>
RE: custom bootstrap stylesheet
Posted by Gabriel Landon <gl...@piti.pf>.
Yes, true.
It uses the theme/boostrap css first and then I override whatever css class
I need to tweak in my own file.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/custom-bootstrap-stylesheet-tp4665044p4665116.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: custom bootstrap stylesheet
Posted by "Richter, Marvin" <Ma...@jestadigital.com>.
That does not override the CSS file used by wicket-bootstrap. It just renders an additional CSS reference in the head section. So it might happen that either my custom or the original Style Sheet will be used depending on which one will be rendered first.
Marvin Richter
-----Original Message-----
From: Gabriel Landon [mailto:glandon@piti.pf]
Sent: Friday, March 21, 2014 7:34 PM
To: users@wicket.apache.org
Subject: Re: custom bootstrap stylesheet
Here's what I'm doing with a "less" reference (would be the same for css).
public abstract class AbstractPage extends WebPage {
/** Less/css reference. */
private static final LessResourceReference MY_LESS_REFERENCE = new LessResourceReference(AbstractPage .class, "css/style.less");
@Override
public void renderHead(final IHeaderResponse response) {
super.renderHead(response);
Bootstrap.renderHead(response);
// Your CSS/LESS reference
response.render(CssHeaderItem.forReference(MY_LESS_REFERENCE));
}
}
Regards,
Gabriel.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/custom-bootstrap-stylesheet-tp4665044p4665079.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: custom bootstrap stylesheet
Posted by Gabriel Landon <gl...@piti.pf>.
Here's what I'm doing with a "less" reference (would be the same for css).
public abstract class AbstractPage extends WebPage {
/** Less/css reference. */
private static final LessResourceReference MY_LESS_REFERENCE = new
LessResourceReference(AbstractPage .class, "css/style.less");
@Override
public void renderHead(final IHeaderResponse response) {
super.renderHead(response);
Bootstrap.renderHead(response);
// Your CSS/LESS reference
response.render(CssHeaderItem.forReference(MY_LESS_REFERENCE));
}
}
Regards,
Gabriel.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/custom-bootstrap-stylesheet-tp4665044p4665079.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org