Example usage for com.liferay.portal.kernel.util PropsKeys JAVASCRIPT_SINGLE_PAGE_APPLICATION_ENABLED

List of usage examples for com.liferay.portal.kernel.util PropsKeys JAVASCRIPT_SINGLE_PAGE_APPLICATION_ENABLED

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util PropsKeys JAVASCRIPT_SINGLE_PAGE_APPLICATION_ENABLED.

Prototype

String JAVASCRIPT_SINGLE_PAGE_APPLICATION_ENABLED

To view the source code for com.liferay.portal.kernel.util PropsKeys JAVASCRIPT_SINGLE_PAGE_APPLICATION_ENABLED.

Click Source Link

Usage

From source file:com.liferay.frontend.js.spa.web.internal.servlet.taglib.SPATopHeadJSPDynamicInclude.java

License:Open Source License

@Override
public void register(DynamicIncludeRegistry dynamicIncludeRegistry) {
    boolean singlePageApplicationEnabled = GetterUtil
            .getBoolean(_props.get(PropsKeys.JAVASCRIPT_SINGLE_PAGE_APPLICATION_ENABLED));

    if (singlePageApplicationEnabled) {
        dynamicIncludeRegistry.register("/html/common/themes/top_head.jsp#post");
    }/*w w  w . j ava2s.c om*/
}