@Override
  protected void init() {
    super.init();

    IBootstrapSettings settings = Bootstrap.getSettings();
    settings.setThemeProvider(new BootswatchThemeProvider(BootswatchTheme.Flatly));
  }
Ejemplo n.º 2
0
  @Override
  public void renderHead(IHeaderResponse response) {
    super.renderHead(response);
    Bootstrap.renderHead(response);

    //        String locale = getSession().getLocale().toString();
    //        response.render(new
    // JavaScriptUrlReferenceHeaderItem("/js/feedback/feedback-"+locale+".js", "feedback", true,
    // null, null));
  }
  @Override
  protected void init() {
    super.init();

    getDebugSettings().setOutputMarkupContainerClassName(true);
    getMarkupSettings().setStripWicketTags(true);
    getDebugSettings().setAjaxDebugModeEnabled(false);

    IBootstrapSettings settings = Bootstrap.getSettings();
    settings.setThemeProvider(new BootswatchThemeProvider(BootswatchTheme.Flatly));
  }
Ejemplo n.º 4
0
  @Override
  public void renderHead(final Component component, final IHeaderResponse response) {
    super.renderHead(component, response);

    response.render(CssHeaderItem.forReference(BootstrapPrettifyCssReference.INSTANCE));

    References.renderWithFilter(
        Bootstrap.getSettings(),
        response,
        JavaScriptHeaderItem.forReference(BootstrapPrettifyJavaScriptReference.INSTANCE));

    response.render(
        OnDomReadyHeaderItem.forScript(createInitializerScript(component.getMarkupId(true))));
  }
  private void configureBootstrap() {
    final BootstrapSettings settings = new BootstrapSettings();
    // settings.useJqueryPP(false).useModernizr(false).useResponsiveCss(true)
    // .setJsResourceFilterName("footer-container");

    // reactivate if new less4j version is available:
    // settings.getBootstrapLessCompilerSettings().setUseLessCompiler(usesDevelopmentConfig());
    // settings.getBootstrapLessCompilerSettings().setLessCompiler(new
    // Less4JCompiler());

    ThemeProvider themeProvider =
        new BootswatchThemeProvider() {
          {
            defaultTheme("united");
          }
        };
    settings.setThemeProvider(themeProvider);

    Bootstrap.install(this, settings);
  }
 @Override
 public Iterable<? extends HeaderItem> getDependencies() {
   return Dependencies.combine(
       super.getDependencies(),
       JavaScriptHeaderItem.forReference(Bootstrap.getSettings().getJsResourceReference()));
 }