Package org.apache.myfaces.view.facelets.tag

Examples of org.apache.myfaces.view.facelets.tag.TagLibrary


    }

    public static TagLibrary create(FacesContext facesContext, URL url) throws IOException
    {
        InputStream is = null;
        TagLibrary t = null;
        URLConnection conn = null;
        try
        {
            ExternalContext externalContext = facesContext.getExternalContext();
            boolean schemaValidating = false;
View Full Code Here


        for (URL url : urls)
        {
            try
            {
                //TagLibrary tl = create(urls[i]);
                TagLibrary tl = create(facesContext, url);
                if (tl != null)
                {
                    compiler.addTagLibrary(tl);
                }
                if (log.isLoggable(Level.FINE))
View Full Code Here

                    if (src == null)
                    {
                        throw new FileNotFoundException(library);
                    }

                    TagLibrary tl = TagLibraryConfig.create(context, src);
                    if (tl != null)
                    {
                        compiler.addTagLibrary(tl);
                    }
                    if (log.isLoggable(Level.FINE))
View Full Code Here

        log.fine("Initializing");
        try
        {
            TagLibraryConfig cfg = new TagLibraryConfig();
            cfg.loadImplicit(FacesContext.getCurrentInstance(), this);
            TagLibrary tagLibrary = this.createTagLibrary();
            if (!tagLibrary.containsNamespace(UILibrary.NAMESPACE) &&
                !tagLibrary.containsNamespace(UILibrary.ALIAS_NAMESPACE))
            {
                log.severe("Missing Built-in Tag Libraries! Make sure they are included within "
                           + "the META-INF directory of Facelets' Jar");
            }
View Full Code Here

                    if (src == null)
                    {
                        throw new FileNotFoundException(library);
                    }

                    TagLibrary tl = TagLibraryConfig.create(src);
                    if (tl != null)
                    {
                        compiler.addTagLibrary(tl);
                    }
                    if (log.isLoggable(Level.FINE))
View Full Code Here

    @Test
    public void testLoadValidLibraryWithValidation() throws Exception
    {
        servletContext.addInitParameter(MyfacesConfig.INIT_PARAM_VALIDATE_XML, "true");

        TagLibrary lib = TagLibraryConfig.create(facesContext, _validLibUrl);
        Assert.assertTrue(lib.containsNamespace("http://myfaces.apache.org/testlib"));
    }
View Full Code Here

    @Test
    public void testLoadValidLibraryWithoutValidation() throws Exception
    {
        servletContext.addInitParameter(MyfacesConfig.INIT_PARAM_VALIDATE_XML, "false");

        TagLibrary lib = TagLibraryConfig.create(facesContext, _validLibUrl);
        Assert.assertTrue(lib.containsNamespace("http://myfaces.apache.org/testlib"));
    }
View Full Code Here

                    if (src == null)
                    {
                        throw new FileNotFoundException(library);
                    }

                    TagLibrary tl = TagLibraryConfig.create(context, src);
                    if (tl != null)
                    {
                        compiler.addTagLibrary(tl);
                    }
                    if (log.isLoggable(Level.FINE))
View Full Code Here

    }

    public static TagLibrary create(FacesContext facesContext, URL url) throws IOException
    {
        InputStream is = null;
        TagLibrary t = null;
        URLConnection conn = null;
        try
        {
            ExternalContext externalContext = facesContext.getExternalContext();
            boolean schemaValidating = false;
View Full Code Here

        for (URL url : urls)
        {
            try
            {
                //TagLibrary tl = create(urls[i]);
                TagLibrary tl = create(facesContext, url);
                if (tl != null)
                {
                    compiler.addTagLibrary(tl);
                }
                if (log.isLoggable(Level.FINE))
View Full Code Here

TOP

Related Classes of org.apache.myfaces.view.facelets.tag.TagLibrary

Copyright © 2018 www.massapicom. 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.