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

Examples of org.apache.myfaces.view.facelets.tag.ComponentTagDeclarationLibrary.addComponent()


                    // a rendererType is not provided. The easy way to overcome this situation is create
                    // a dummy instance and check its rendererType. If is set the renderer if any will be
                    // scanned for annotations, if not it just do things as usual. It is unlikely to create
                    // a component and does not set a default renderer type if is required.
                    UIComponent component = context.getApplication().createComponent(declaration.getComponentType());
                    componentTagDeclarationLibrary.addComponent(declaration.getNamespace(),
                            declaration.getTagName(), declaration.getComponentType(), component.getRendererType());
                }
            }
            finally
            {
View Full Code Here


                // a rendererType is not provided. The easy way to overcome this situation is create
                // a dummy instance and check its rendererType. If is set the renderer if any will be
                // scanned for annotations, if not it just do things as usual. It is unlikely to create
                // a component and does not set a default renderer type if is required.
                UIComponent component = context.getApplication().createComponent(declaration.getComponentType());
                componentTagDeclarationLibrary.addComponent(declaration.getNamespace(),
                        declaration.getTagName(), declaration.getComponentType(), component.getRendererType());
            }
            compiler.addTagLibrary(componentTagDeclarationLibrary);
        }
       
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.