Examples of IWebContext


Examples of org.thymeleaf.context.IWebContext

            addTabAnchors(arguments, element, tabContainerId);
            // Build javascript code
            StringBuilder sb = new StringBuilder();
            sb.append("$(\"#").append(tabContainerId).append("\").tabs(); \n");
            // Select one tab if required
            IWebContext context = (IWebContext) arguments.getContext();
            if (context.getRequestParameters().get(TAB_PARAM) != null) {
                String tabId = context.getRequestParameters().get(TAB_PARAM)[0];
                sb.append("$(\"#").append(tabContainerId).append("\").tabs('select', '").append(tabId).append("');\n");
            }
            // Add javascript code to document
            JavaScriptComposer.addOnDocumentReady(arguments.getDocument(), sb.toString());
        }
View Full Code Here

Examples of org.thymeleaf.context.IWebContext

        vars.put(SpringContextVariableNames.SPRING_REQUEST_CONTEXT, requestContext);

        // copy all spring model attributes into the spring web context as variables
        vars.putAll(RenderContext.get().getModel());

        final IWebContext context = new SpringWebContext(request, response, servletContext, MgnlContext.getWebContext()
                .getRequest().getLocale(), vars, getApplicationContext());

        try (AppendableWriter out = renderingCtx.getAppendable()) {
            // need to ensure engine initialised before getting configuration
            if (!engine.isInitialized()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.