Examples of DefineHandler


Examples of com.sun.faces.facelets.tag.ui.DefineHandler

        this.location = location;
                Iterator itr = this.findNextByType(DefineHandler.class);
        if (itr.hasNext()) {
            handlers = new HashMap();

            DefineHandler d = null;
            while (itr.hasNext()) {
                d = (DefineHandler) itr.next();
                this.handlers.put(d.getName(), d);
            }
        } else {
            handlers = null;
        }
    }
View Full Code Here

Examples of com.sun.faces.facelets.tag.ui.DefineHandler

    throws IOException {
        if (name != null) {
            if (this.handlers == null) {
                return false;
            }
            DefineHandler handler = (DefineHandler) this.handlers.get(name);
            if (handler != null) {
                handler.applyDefinition(ctx, parent);
                return true;
            } else {
                return false;
            }
        } else {
View Full Code Here

Examples of com.sun.faces.facelets.tag.ui.DefineHandler

    given(nameAttribute.getValue()).willReturn("defineName");
    TagAttributes attributes = new TagAttributesImpl(new TagAttribute[] { nameAttribute });
    Tag tag = new Tag(new Location("", 0, 0), "", "", "", attributes);
    given(tagConfig.getTag()).willReturn(tag);
    given(tagConfig.getNextHandler()).willReturn(this.innerDefineHandler);
    DefineHandler defineHandler = new DefineHandler(tagConfig);
    return defineHandler;
  }
View Full Code Here

Examples of com.sun.faces.facelets.tag.ui.DefineHandler

      for (FaceletHandler variableDeclaration : variableDeclarationHandlers) {
        if (variableDeclaration instanceof ParamHandler) {
          this.paramHandlers.add((ParamHandler) variableDeclaration);
        }
        if (variableDeclaration instanceof DefineHandler) {
          DefineHandler defineHandler = (DefineHandler) variableDeclaration;
          this.defineHandlers.put(defineHandler.getName(), defineHandler);
        }
      }
    }
View Full Code Here

Examples of com.sun.faces.facelets.tag.ui.DefineHandler

    private boolean applyTemplate(FaceletContext ctx, UIComponent parent, String name) throws IOException {
      if (name == null) {
        this.handler.apply(ctx, parent);
        return true;
      }
      DefineHandler definedHandler = this.defineHandlers.get(name);
      if (definedHandler != null) {
        definedHandler.applyDefinition(ctx, parent);
        return true;
      }
      return false;
    }
View Full Code Here

Examples of com.sun.faces.facelets.tag.ui.DefineHandler

        this.location = location;
                Iterator itr = this.findNextByType(DefineHandler.class);
        if (itr.hasNext()) {
            handlers = new HashMap();

            DefineHandler d = null;
            while (itr.hasNext()) {
                d = (DefineHandler) itr.next();
                this.handlers.put(d.getName(), d);
            }
        } else {
            handlers = null;
        }
    }
View Full Code Here

Examples of com.sun.faces.facelets.tag.ui.DefineHandler

    throws IOException {
        if (name != null) {
            if (this.handlers == null) {
                return false;
            }
            DefineHandler handler = (DefineHandler) this.handlers.get(name);
            if (handler != null) {
                handler.applyDefinition(ctx, parent);
                return true;
            } else {
                return false;
            }
        } else {
View Full Code Here

Examples of com.sun.faces.facelets.tag.ui.DefineHandler

        this.location = location;
                Iterator itr = this.findNextByType(DefineHandler.class);
        if (itr.hasNext()) {
            handlers = new HashMap();

            DefineHandler d = null;
            while (itr.hasNext()) {
                d = (DefineHandler) itr.next();
                this.handlers.put(d.getName(), d);
            }
        } else {
            handlers = null;
        }
    }
View Full Code Here

Examples of com.sun.faces.facelets.tag.ui.DefineHandler

    throws IOException {
        if (name != null) {
            if (this.handlers == null) {
                return false;
            }
            DefineHandler handler = (DefineHandler) this.handlers.get(name);
            if (handler != null) {
                handler.applyDefinition(ctx, parent);
                return true;
            } else {
                return false;
            }
        } else {
View Full Code Here

Examples of org.apache.myfaces.view.facelets.tag.ui.DefineHandler

        {
            if (this._handlers == null)
            {
                return false;
            }
            DefineHandler handler = (DefineHandler) this._handlers.get(name);
            if (handler != null)
            {
                AbstractFaceletContext actx = (AbstractFaceletContext) ctx;
                TemplateContext itc = actx.popTemplateContext();
                try
                {
                    handler.applyDefinition(ctx, parent);
                }
                finally
                {
                    actx.pushTemplateContext(itc);
                }
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.