Examples of LayoutDefinition


Examples of com.sun.jsftemplating.layout.descriptors.LayoutDefinition

    public static void getLayoutDefinition(HandlerContext ctx) {
  // First get the viewId...
  String viewId = (String) ctx.getInputValue("viewId");

  // Find the LayoutDefinition
  LayoutDefinition def = ViewRootUtil.getLayoutDefinition(viewId);

  // Set the result
  ctx.setOutputValue("layoutDefinition", def);
    }
View Full Code Here

Examples of com.sun.jsftemplating.layout.descriptors.LayoutDefinition

        // Determine the key we should use to cache this
  String cacheKey = FileUtil.cleanUpPath(key.startsWith("/") ?
    key : FileUtil.getAbsolutePath(ctx, key));

        // Check to see if we already have it.
        LayoutDefinition def = getCachedLayoutDefinition(ctx, cacheKey);
//System.out.println("GET LD (" + cacheKey + ", " + isDebug(ctx) + "):" + def);
        if (def == null) {
            // Obtain the correct LDM, and get the LD
            def = getLayoutDefinitionManager(ctx, key).getLayoutDefinition(key);
//System.out.println("  Found LD (" + cacheKey + ")?:" + def);
      putCachedLayoutDefinition(ctx, cacheKey, def);
        } else {
            // In the case where we found a cached version,
            // ensure we invoke "initPage" handlers
            def.dispatchInitPageHandlers(ctx, def);
        }
// FIXME: Flag a page as *not found* for performance reasons when JSP is used (or other view technologies)

        // Return the LD
        return def;
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.