Example usage for org.apache.wicket Application getMarkupSettings

List of usage examples for org.apache.wicket Application getMarkupSettings

Introduction

In this page you can find the example usage for org.apache.wicket Application getMarkupSettings.

Prototype

public MarkupSettings getMarkupSettings() 

Source Link

Usage

From source file:com.gmail.volodymyrdotsenko.jqxwicket.theme.Initializer.java

License:Apache License

@Override
public void init(Application application) {
    application.getMarkupSettings().setStripWicketTags(true);

    JQueryUILibrarySettings.get()//from  w  w w.j  a  va2s.c o m
            .setBasestyleSheetReference(new CssResourceReference(Initializer.class, "jqx.base.css"));

    JQueryUILibrarySettings.get().setStyleSheetReference(
            new CssResourceReference(Initializer.class, "jqx.darkblue.css", null, "darkblue", null));
}

From source file:com.googlecode.wicket.jquery.ui.theme.Initializer.java

License:Apache License

@Override
public void init(Application application) {
    application.getMarkupSettings().setStripWicketTags(true);

    JQueryUILibrarySettings.get()/* w w  w . j a va  2 s  .co m*/
            .setStyleSheetReference(new CssResourceReference(Initializer.class, "jquery-ui.css"));
}

From source file:com.googlecode.wicket.kendo.ui.theme.Initializer.java

License:Apache License

@Override
public void init(Application application) {
    application.getMarkupSettings().setStripWicketTags(true);

    KendoUILibrarySettings settings = KendoUILibrarySettings.get();
    settings.setCommonStyleSheetReference(new CssResourceReference(Initializer.class, "kendo.common.min.css"));
    settings.setThemeStyleSheetReference(new CssResourceReference(Initializer.class, "kendo.uniform.min.css"));
    settings.setMobileStyleSheetReference(
            new CssResourceReference(Initializer.class, "kendo.uniform.mobile.min.css"));
}

From source file:de.alpharogroup.wicket.base.util.application.ApplicationExtensions.java

License:Apache License

/**
 * Sets the deployment settings for deployment mode for the given application.
 *
 * @param application//from w  ww . j  a  va  2  s .co  m
 *            the application to set the settings
 */
public static void setDeploymentModeConfiguration(final Application application) {
    application.getMarkupSettings().setStripComments(true);
    // The resources are never polled. This are properties, html,
    // css, js files.
    application.getResourceSettings().setResourcePollFrequency(null);
    application.getResourceSettings().setJavaScriptCompressor(new DefaultJavaScriptCompressor());
    // set the behavior if an missing resource is found...
    application.getResourceSettings().setThrowExceptionOnMissingResource(false);
    // debug settings...
    application.getDebugSettings().setComponentUseCheck(false);
    application.getDebugSettings().setAjaxDebugModeEnabled(false);
    application.getDebugSettings().setDevelopmentUtilitiesEnabled(false);

    application.getDebugSettings().setOutputMarkupContainerClassName(false);
    application.getDebugSettings().setLinePreciseReportingOnAddComponentEnabled(false);
    application.getDebugSettings().setLinePreciseReportingOnNewComponentEnabled(false);
}

From source file:net.jawr.web.wicket.JawrWicketApplicationInitializer.java

License:Apache License

/**
 * Initialize the wicket application//from w  w w.java  2 s .c o m
 * 
 * @param app the aplpication to initialize
 */
public static void initApplication(Application app) {

    // Add the Jawr tag handler to the MarkupParserFactory 
    MarkupFactory factory = new MarkupFactory() {

        public MarkupParser newMarkupParser(final MarkupResourceStream resource) {
            MarkupParser parser = new MarkupParser(new XmlPullParser(), resource);
            parser.add(new JawrWicketLinkTagHandler());
            return parser;
        }
    };

    app.getMarkupSettings().setMarkupFactory(factory);

    // Add the Jawr link resolver
    app.getPageSettings().addComponentResolver(new JawrWicketLinkResolver());
}

From source file:org.jaulp.wicket.base.util.application.ApplicationUtils.java

License:Apache License

/**
 * Sets the debug settings for deployment mode for the given application.
 *
 * @param application/* w  w w. j a va2 s .com*/
 *            the application to set the settings
 */
public static void setDeploymentModeConfiguration(final Application application) {
    application.getMarkupSettings().setStripComments(true);
    // The resources are never polled. This are properties, html,
    // css, js files.
    application.getResourceSettings().setResourcePollFrequency(null);
    application.getResourceSettings().setJavaScriptCompressor(new DefaultJavaScriptCompressor());
    // set the behavior if an missing resource is found...
    application.getResourceSettings().setThrowExceptionOnMissingResource(false);
    // debug settings...
    application.getDebugSettings().setComponentUseCheck(false);
    application.getDebugSettings().setAjaxDebugModeEnabled(false);
    application.getDebugSettings().setDevelopmentUtilitiesEnabled(false);

    application.getDebugSettings().setOutputComponentPath(false);
    application.getDebugSettings().setOutputMarkupContainerClassName(false);
    application.getDebugSettings().setLinePreciseReportingOnAddComponentEnabled(false);
    application.getDebugSettings().setLinePreciseReportingOnNewComponentEnabled(false);
}