Examples of DefineHandler


Examples of org.apache.myfaces.view.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 org.apache.myfaces.view.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 org.apache.myfaces.view.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
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.