Examples of LayoutElement


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

      @HandlerInput(name="layoutElement", type=LayoutElement.class, required=true)
  })
    public static void buildAllClusters(HandlerContext handlerCtx) {
        List<String> clusterList = (List) handlerCtx.getInputValue("clusterList");
  UIComponent parent = (UIComponent) handlerCtx.getInputValue("parent");
  LayoutElement elt = (LayoutElement) handlerCtx.getInputValue("layoutElement");
       
        if (clusterList == null || clusterList.size() <=1){
            // There is only one cluster, it has been build already.
            return;
        }
View Full Code Here

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

      @HandlerInput(name="layoutElement", type=LayoutElement.class, required=true)
  })
    public static void buildAllConfiguration(HandlerContext handlerCtx) {
        List<String> configList = (List) handlerCtx.getInputValue("configList");
  UIComponent parent = (UIComponent) handlerCtx.getInputValue("parent");
  LayoutElement elt = (LayoutElement) handlerCtx.getInputValue("layoutElement");
       
        if (configList == null || configList.size() <=1){
            // There is only one configuration, it has been build already.
            return;
        }
View Full Code Here

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

        int end = ((Integer) handlerCtx.getInputValue("end")).intValue();
        String varName = ((String) handlerCtx.getInputValue("varName"));

        List<com.sun.jsftemplating.layout.descriptors.handler.Handler> handlers = handlerCtx.getHandler().getChildHandlers();
    if (handlers.size() > 0) {
            LayoutElement elt = handlerCtx.getLayoutElement();
            Map<String, Object> requestMap = handlerCtx.getFacesContext().getExternalContext().getRequestMap();
            for(int ix=start;  ix<=end; ix++){
                requestMap.put(varName, ix);
                //ignore whats returned by the handler.
                elt.dispatchHandlers(handlerCtx, handlers);
        }
    }
        return false;
    }
View Full Code Here

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

  List<com.sun.jsftemplating.layout.descriptors.handler.Handler> handlers =
            handlerCtx.getHandler().getChildHandlers();
        if (handlers.size() > 0) {
            // We have child handlers in the loop... execute while we iterate
            LayoutElement elt = handlerCtx.getLayoutElement();
            Map<String, Object> requestMap = handlerCtx.getFacesContext().
                    getExternalContext().getRequestMap();
      if (list != null) {
    for (Object obj : list) {
        requestMap.put(var, obj);

        // Ignore whats returned by the handler... we need to return
        // false anyway to prevent children from being executed again
// FIXME: Consider supporting a "break" type of functionality
        elt.dispatchHandlers(handlerCtx, handlers);
    }
      }
        }

        // This will prevent the child handlers from executing again
View Full Code Here

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

        int end = ((Integer) handlerCtx.getInputValue("end")).intValue();
        String varName = ((String) handlerCtx.getInputValue("varName"));

        List<com.sun.jsftemplating.layout.descriptors.handler.Handler> handlers = handlerCtx.getHandler().getChildHandlers();
    if (handlers.size() > 0) {
            LayoutElement elt = handlerCtx.getLayoutElement();
            Map<String, Object> requestMap = handlerCtx.getFacesContext().getExternalContext().getRequestMap();
            for(int ix=start;  ix<=end; ix++){
                requestMap.put(varName, ix);
                //ignore whats returned by the handler.
                elt.dispatchHandlers(handlerCtx, handlers);
        }
    }
        return false;
    }
View Full Code Here

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

  List<com.sun.jsftemplating.layout.descriptors.handler.Handler> handlers =
            handlerCtx.getHandler().getChildHandlers();
        if (handlers.size() > 0) {
            // We have child handlers in the loop... execute while we iterate
            LayoutElement elt = handlerCtx.getLayoutElement();
            Map<String, Object> requestMap = handlerCtx.getFacesContext().
                    getExternalContext().getRequestMap();
      if (list != null) {
    for (Object obj : list) {
        requestMap.put(var, obj);

        // Ignore whats returned by the handler... we need to return
        // false anyway to prevent children from being executed again
// FIXME: Consider supporting a "break" type of functionality
        elt.dispatchHandlers(handlerCtx, handlers);
    }
      }
        }

        // This will prevent the child handlers from executing again
View Full Code Here

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

        int end = ((Integer) handlerCtx.getInputValue("end")).intValue();
        String varName = ((String) handlerCtx.getInputValue("varName"));

        List<com.sun.jsftemplating.layout.descriptors.handler.Handler> handlers = handlerCtx.getHandler().getChildHandlers();
    if (handlers.size() > 0) {
            LayoutElement elt = handlerCtx.getLayoutElement();
            Map<String, Object> requestMap = handlerCtx.getFacesContext().getExternalContext().getRequestMap();
            for(int ix=start;  ix<=end; ix++){
                requestMap.put(varName, ix);
                //ignore whats returned by the handler.
                elt.dispatchHandlers(handlerCtx, handlers);
        }
    }
        return false;
    }
View Full Code Here

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

  List<com.sun.jsftemplating.layout.descriptors.handler.Handler> handlers =
            handlerCtx.getHandler().getChildHandlers();
        if (handlers.size() > 0) {
            // We have child handlers in the loop... execute while we iterate
            LayoutElement elt = handlerCtx.getLayoutElement();
            Map<String, Object> requestMap = handlerCtx.getFacesContext().
                    getExternalContext().getRequestMap();
      if (list != null) {
    for (Object obj : list) {
        requestMap.put(var, obj);

        // Ignore whats returned by the handler... we need to return
        // false anyway to prevent children from being executed again
// FIXME: Consider supporting a "break" type of functionality
        elt.dispatchHandlers(handlerCtx, handlers);
    }
      }
        }

        // This will prevent the child handlers from executing again
View Full Code Here

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

        int end = ((Integer) handlerCtx.getInputValue("end")).intValue();
        String varName = ((String) handlerCtx.getInputValue("varName"));

        List<com.sun.jsftemplating.layout.descriptors.handler.Handler> handlers = handlerCtx.getHandler().getChildHandlers();
    if (handlers.size() > 0) {
            LayoutElement elt = handlerCtx.getLayoutElement();
            Map<String, Object> requestMap = handlerCtx.getFacesContext().getExternalContext().getRequestMap();
            for(int ix=start;  ix<=end; ix++){
                requestMap.put(varName, ix);
                //ignore whats returned by the handler.
                elt.dispatchHandlers(handlerCtx, handlers);
        }
    }
        return false;
    }
View Full Code Here

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

  List<com.sun.jsftemplating.layout.descriptors.handler.Handler> handlers =
            handlerCtx.getHandler().getChildHandlers();
        if (handlers.size() > 0) {
            // We have child handlers in the loop... execute while we iterate
            LayoutElement elt = handlerCtx.getLayoutElement();
            Map<String, Object> requestMap = handlerCtx.getFacesContext().
                    getExternalContext().getRequestMap();
      if (list != null) {
    for (Object obj : list) {
        requestMap.put(var, obj);

        // Ignore whats returned by the handler... we need to return
        // false anyway to prevent children from being executed again
// FIXME: Consider supporting a "break" type of functionality
        elt.dispatchHandlers(handlerCtx, handlers);
    }
      }
        }

        // This will prevent the child handlers from executing again
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.