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.ha...@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 
<marvin.rich...@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:mgrigo...@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.rich...@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:mgrigo...@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.rich...@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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to