Package org.apache.myfaces.config.impl.digester.elements.facelets

Examples of org.apache.myfaces.config.impl.digester.elements.facelets.FaceletTagImpl


                    {
                        if (this.handlerClass != null)
                        {
                            //impl.putTagHandler(this.tagName, this.handlerClass);
                            getLibraryImpl().addTag(
                                new FaceletTagImpl(this.tagName,
                                    new FaceletHandlerTagImpl(this.handlerClass)) );
                            this.handlerClass = null;
                        }
                    }
                    else if ("handler-class".equals(qName))
                    {
                        //String cName = this.captureBuffer();
                        //this.handlerClass = createClass(TagHandler.class, cName);
                        this.handlerClass = this.captureBuffer();
                    }
                    else if ("component".equals(qName))
                    {
                        if (this.handlerClass != null)
                        {
                            //impl.putComponent(this.tagName, this.componentType, this.rendererType, this.handlerClass);
                            getLibraryImpl().addTag(new FaceletTagImpl(this.tagName,
                                new FaceletComponentTagImpl(this.componentType, this.rendererType,
                                    this.handlerClass, null)));
                            this.handlerClass = null;
                        }
                        else if (this.resourceId != null)
                        {
                            //impl.putComponentFromResourceId(this.tagName, this.resourceId);
                            getLibraryImpl().addTag(new FaceletTagImpl(this.tagName,
                                new FaceletComponentTagImpl(null, null, null, this.resourceId)));
                            this.resourceId = null;
                            this.handlerClass = null;
                        }
                        else
                        {
                            getLibraryImpl().addTag(new FaceletTagImpl(this.tagName,
                                new FaceletComponentTagImpl(this.componentType, this.rendererType, null, null)));
                            this.handlerClass = null;
                            //impl.putComponent(this.tagName, this.componentType, this.rendererType);
                        }
                    }
                    else if ("converter-id".equals(qName))
                    {
                        this.converterId = this.captureBuffer();
                    }
                    else if ("converter".equals(qName))
                    {
                        if (this.handlerClass != null)
                        {
                            //impl.putConverter(this.tagName, this.converterId, handlerClass);
                            getLibraryImpl().addTag(new FaceletTagImpl(this.tagName,
                                new FaceletConverterTagImpl(this.converterId, this.handlerClass)));
                            this.handlerClass = null;
                        }
                        else
                        {
                            //impl.putConverter(this.tagName, this.converterId);
                            getLibraryImpl().addTag(new FaceletTagImpl(this.tagName,
                                new FaceletConverterTagImpl(this.converterId)));
                        }
                        this.converterId = null;
                    }
                    else if ("validator-id".equals(qName))
                    {
                        this.validatorId = this.captureBuffer();
                    }
                    else if ("validator".equals(qName))
                    {
                        if (this.handlerClass != null)
                        {
                            //impl.putValidator(this.tagName, this.validatorId, handlerClass);
                            getLibraryImpl().addTag(new FaceletTagImpl(this.tagName,
                                new FaceletValidatorTagImpl(this.validatorId, this.handlerClass)));
                            this.handlerClass = null;
                        }
                        else
                        {
                            //impl.putValidator(this.tagName, this.validatorId);
                            getLibraryImpl().addTag(new FaceletTagImpl(this.tagName,
                                new FaceletValidatorTagImpl(this.validatorId)));
                        }
                        this.validatorId = null;
                    }
                    else if ("behavior-id".equals(qName))
                    {
                        this.behaviorId = this.captureBuffer();
                    }
                    else if ("behavior".equals(qName))
                    {
                        if (this.handlerClass != null)
                        {
                            //impl.putBehavior(this.tagName, this.behaviorId, handlerClass);
                            getLibraryImpl().addTag(new FaceletTagImpl(this.tagName,
                                new FaceletBehaviorTagImpl(this.behaviorId, this.handlerClass)));
                            this.handlerClass = null;
                        }
                        else
                        {
                            //impl.putBehavior(this.tagName, this.behaviorId);
                            getLibraryImpl().addTag(new FaceletTagImpl(this.tagName,
                                new FaceletBehaviorTagImpl(this.behaviorId)));
                        }
                        this.behaviorId = null;
                    }
                    else if ("source".equals(qName))
                    {
                        String path = this.captureBuffer();
                        URL url = new URL(this.source, path);
                        //impl.putUserTag(this.tagName, url);
                        getLibraryImpl().addTag(new FaceletTagImpl(this.tagName,
                            new FaceletSourceTagImpl(url.toString())));
                    }
                    else if ("function-signature".equals(qName))
                    {
                        this.functionSignature = this.captureBuffer();
View Full Code Here

TOP

Related Classes of org.apache.myfaces.config.impl.digester.elements.facelets.FaceletTagImpl

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.