Examples of TagLibrary


Examples of anvil.script.statements.taglib.TagLibrary

      importing = script.getAddress().resolve(source);
    } catch (ZoneInactiveException e) {
      listener.error(location, "Target's zone is inactive: '" + source + "'");
    }
    URL url = importing.getURL();
    TagLibrary lib = anvil.script.statements.taglib.Parser.parse(listener, url, location, namespace, tagns);
    if (lib != null) {
      _taglibs.addLibrary(lib);
    }
  }
View Full Code Here

Examples of com.sun.facelets.tag.TagLibrary

        String libParam = ext.getInitParameter(PARAM_LIBRARIES);
        if (libParam != null) {
            libParam = libParam.trim();
            String[] libs = libParam.split(";");
            URL src;
            TagLibrary libObj;
            for (int i = 0; i < libs.length; i++) {
                try {
                    src = ext.getResource(libs[i].trim());
                    if (src == null) {
                        throw new FileNotFoundException(libs[i]);
View Full Code Here

Examples of com.sun.facelets.tag.TagLibrary

        super();
    }

    public static TagLibrary create(URL url) throws IOException {
        InputStream is = null;
        TagLibrary t = null;
        try {
            is = url.openStream();
            LibraryHandler handler = new LibraryHandler(url);
            SAXParser parser = createSAXParser(handler);
            parser.parse(is, handler);
View Full Code Here

Examples of com.sun.facelets.tag.TagLibrary

      if (libraryParameter != null)
      {
         libraryParameter = libraryParameter.trim();
         String[] libraries = libraryParameter.split(";");
         URL src;
         TagLibrary libraryObject;
         for (int i = 0; i < libraries.length; i++)
         {
            try
            {
               src = externalContext.getResource(libraries[i].trim());
View Full Code Here

Examples of com.sun.facelets.tag.TagLibrary

        String libParam = ext.getInitParameter(PARAM_LIBRARIES);
        if (libParam != null) {
            libParam = libParam.trim();
            String[] libs = libParam.split(";");
            URL src;
            TagLibrary libObj;
            for (int i = 0; i < libs.length; i++) {
                try {
                    src = ext.getResource(libs[i].trim());
                    if (src == null) {
                        throw new FileNotFoundException(libs[i]);
View Full Code Here

Examples of com.sun.facelets.tag.TagLibrary

        super();
    }

    public static TagLibrary create(URL url) throws IOException {
        InputStream is = null;
        TagLibrary t = null;
        try {
            is = url.openStream();
            LibraryHandler handler = new LibraryHandler(url);
            SAXParser parser = createSAXParser(handler);
            parser.parse(is, handler);
View Full Code Here

Examples of com.sun.faces.facelets.tag.TagLibrary

    private void processTaglibraryClass(NodeList libraryClass,
                                        Compiler compiler) {

        Node n = libraryClass.item(0);
        String className = getNodeText(n);
        TagLibrary taglib = (TagLibrary) createInstance(className, n);
        compiler.addTagLibrary(taglib);

    }
View Full Code Here

Examples of cookxml.core.interfaces.TagLibrary

    {
      LinkedList list = (LinkedList)m_inheritMap.get (tag);
      if (list != null)
        return list;
    }
    TagLibrary tagLibrary = getParent ();
    if (tagLibrary == null || !(tagLibrary instanceof InheritableTagLibrary))
      return null;
    return ((InheritableTagLibrary)tagLibrary).getParentTags (ns, tag);
  }
View Full Code Here

Examples of org.apache.commons.jelly.TagLibrary

    public TestTagLibraryResolver(String testName) {
        super(testName);
    }

    public void testResolver() throws Exception {
        TagLibrary library = resolver.resolveTagLibrary("jelly:test-library" );
       
        assertTrue( "Found a tag library", library != null );
        assertEquals( "Tag library is of the correct type", "org.apache.commons.jelly.test.impl.DummyTagLibrary", library.getClass().getName() );
    }
View Full Code Here

Examples of org.apache.commons.jelly.TagLibrary

        String localName,
        Attributes list)
        throws SAXException {
        try {
            // use the URI to load a taglib
            TagLibrary taglib = context.getTagLibrary(namespaceURI);
            if (taglib == null) {
                if (namespaceURI != null && namespaceURI.startsWith("jelly:")) {
                    String uri = namespaceURI.substring(6);
                    // try to find the class on the claspath
                    try {
                        Class taglibClass = getClassLoader().loadClass(uri);
                        taglib = (TagLibrary) taglibClass.newInstance();
                        context.registerTagLibrary(namespaceURI, taglib);
                    }
                    catch (ClassNotFoundException e) {
                        log.warn("Could not load class: " + uri + " so disabling the taglib");
                    }
                }
            }
            if (taglib != null) {
                TagScript script = taglib.createTagScript(localName, list);
                if ( script != null ) {
                    // now iterate through through the expressions
                    int size = list.getLength();
                    for (int i = 0; i < size; i++) {
                        String attributeName = list.getLocalName(i);
                        String attributeValue = list.getValue(i);
                        Expression expression =
                            taglib.createExpression(
                                getExpressionFactory(),
                                localName,
                                attributeName,
                                attributeValue);
                        if (expression == null) {
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.