Examples of TagExtraInfo


Examples of javax.servlet.jsp.tagext.TagExtraInfo

            TagData tagData = new TagData(tagDataAttrs);

            // JSP.C1: It is a (translation time) error for an action that
            // has one or more variable subelements to have a TagExtraInfo
            // class that returns a non-null object.
            TagExtraInfo tei = tagInfo.getTagExtraInfo();
            if (tei != null && tei.getVariableInfo(tagData) != null
                    && tei.getVariableInfo(tagData).length > 0
                    && tagInfo.getTagVariableInfos().length > 0) {
                err.jspError("jsp.error.non_null_tei_and_var_subelems", n
                        .getQName());
            }
View Full Code Here

Examples of javax.servlet.jsp.tagext.TagExtraInfo

                            "jsp.warning.unknown.element.in.tag", tname));
                }
            }
        }

        TagExtraInfo tei = null;
        if (teiClassName != null && !teiClassName.equals("")) {
            try {
                Class teiClass = ctxt.getClassLoader().loadClass(teiClassName);
                tei = (TagExtraInfo) teiClass.newInstance();
            } catch (Exception e) {
View Full Code Here

Examples of javax.servlet.jsp.tagext.TagExtraInfo

      TagData tagData = new TagData(tagDataAttrs);

      // JSP.C1: It is a (translation time) error for an action that
      // has one or more variable subelements to have a TagExtraInfo
      // class that returns a non-null object.
      TagExtraInfo tei = tagInfo.getTagExtraInfo();
      if (tei != null
        && tei.getVariableInfo(tagData) != null
        && tei.getVariableInfo(tagData).length > 0
        && tagInfo.getTagVariableInfos().length > 0) {
    err.jspError("jsp.error.non_null_tei_and_var_subelems",
           n.getQName());
      }
View Full Code Here

Examples of javax.servlet.jsp.tagext.TagExtraInfo

                            "jsp.warning.unknown.element.in.tag", tname));
                }
            }
        }

        TagExtraInfo tei = null;
        if (teiClassName != null && !teiClassName.equals("")) {
            try {
                Class<?> teiClass =
                    ctxt.getClassLoader().loadClass(teiClassName);
                tei = (TagExtraInfo) teiClass.newInstance();
View Full Code Here

Examples of javax.servlet.jsp.tagext.TagExtraInfo

            TagData tagData = new TagData(tagDataAttrs);

            // JSP.C1: It is a (translation time) error for an action that
            // has one or more variable subelements to have a TagExtraInfo
            // class that returns a non-null object.
            TagExtraInfo tei = tagInfo.getTagExtraInfo();
            if (tei != null && tei.getVariableInfo(tagData) != null
                    && tei.getVariableInfo(tagData).length > 0
                    && tagInfo.getTagVariableInfos().length > 0) {
                err.jspError("jsp.error.non_null_tei_and_var_subelems", n
                        .getQName());
            }
View Full Code Here

Examples of javax.servlet.jsp.tagext.TagExtraInfo

       */
      teiClass = Class.forName(teiClassname, true, loader);
      if (teiClass != null) {
        Object teiObject = teiClass.newInstance();
        if (TagExtraInfo.class.isInstance(teiObject)) {
          TagExtraInfo tei = (TagExtraInfo) teiObject;
          Hashtable tagDataTable = extractTagData(customTag);
          TagInfo info = getTagInfo(decl, tei, prefix, uri);
          if (info != null) {
            tei.setTagInfo(info);

            // add to results
            TagData td = new TagData(tagDataTable);

            VariableInfo[] vInfos = tei.getVariableInfo(td);
            if (vInfos != null) {
              for (int i = 0; i < vInfos.length; i++) {
                results.add(new TaglibVariable(vInfos[i].getClassName(), vInfos[i].getVarName(), vInfos[i].getScope(), decl.getDescription()));
              }
            }

            ValidationMessage[] messages = tei.validate(td);
            if (messages != null && messages.length > 0) {
              for (int i = 0; i < messages.length; i++) {
                Object createdProblem = createValidationMessageProblem(document, customTag, messages[i].getMessage());
                if (createdProblem != null) {
                  problems.add(createdProblem);
View Full Code Here

Examples of javax.servlet.jsp.tagext.TagExtraInfo

       */
      teiClass = Class.forName(teiClassname, true, loader);
      if (teiClass != null) {
        Object teiObject = teiClass.newInstance();
        if (TagExtraInfo.class.isInstance(teiObject)) {
          TagExtraInfo tei = (TagExtraInfo) teiObject;
          Hashtable tagDataTable = extractTagData(customTag);
          TagInfo info = getTagInfo(decl, tei, prefix, uri);
          if (info != null) {
            tei.setTagInfo(info);

            // add to results
            TagData td = new TagData(tagDataTable);

            VariableInfo[] vInfos = tei.getVariableInfo(td);
            if (vInfos != null) {
              for (int i = 0; i < vInfos.length; i++) {
                results.add(new TaglibVariable(vInfos[i].getClassName(), vInfos[i].getVarName(), vInfos[i].getScope(), decl.getDescription()));
              }
            }

            ValidationMessage[] messages = tei.validate(td);
            if (messages != null && messages.length > 0) {
              for (int i = 0; i < messages.length; i++) {
                Object createdProblem = createValidationMessageProblem(document, customTag, messages[i].getMessage());
                if (createdProblem != null) {
                  problems.add(createdProblem);
View Full Code Here

Examples of javax.servlet.jsp.tagext.TagExtraInfo

            TagData tagData = new TagData(tagDataAttrs);

            // JSP.C1: It is a (translation time) error for an action that
            // has one or more variable subelements to have a TagExtraInfo
            // class that returns a non-null object.
            TagExtraInfo tei = tagInfo.getTagExtraInfo();
            if (tei != null && tei.getVariableInfo(tagData) != null
                    && tei.getVariableInfo(tagData).length > 0
                    && tagInfo.getTagVariableInfos().length > 0) {
                err.jspError("jsp.error.non_null_tei_and_var_subelems", n
                        .getQName());
            }
View Full Code Here

Examples of javax.servlet.jsp.tagext.TagExtraInfo

        }
  TagAttributeInfo[] tagAttributeInfo
            = new TagAttributeInfo[attributeVector.size()];
  attributeVector.copyInto (tagAttributeInfo);

        TagExtraInfo tei = null;

        if (teiclass != null && !teiclass.equals(""))
            try {
                Class teiClass = ctxt.getClassLoader().loadClass(teiclass);
                tei = (TagExtraInfo) teiClass.newInstance();
View Full Code Here

Examples of javax.servlet.jsp.tagext.TagExtraInfo

                            "jsp.warning.unknown.element.in.tag", tname));
                }
            }
        }

        TagExtraInfo tei = null;
        if (teiClassName != null && !teiClassName.equals("")) {
            try {
                Class teiClass = ctxt.getClassLoader().loadClass(teiClassName);
                tei = (TagExtraInfo) teiClass.newInstance();
            } catch (Exception e) {
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.