Examples of UIComponentClassicTagBase


Examples of javax.faces.webapp.UIComponentClassicTagBase

        if(log.isDebugEnabled())
            log.debug("JSF 1.2 Spec : Create a new instance of the ActionListener");

        ActionListener actionListener = new SetPropertyActionListener(target, value);
       
        UIComponentClassicTagBase tag = UIComponentClassicTagBase.getParentUIComponentClassicTagBase(pageContext);
       
        if(tag == null)
            throw new JspException("Could not find a " +
                    "parent UIComponentClassicTagBase ... is this " +
                    "tag in a child of a UIComponentClassicTagBase?");
       
        if(tag.getCreated())
        {
           
            UIComponent component = tag.getComponentInstance();
           
            if(component == null)
                throw new JspException(" Could not locate a UIComponent " +
                        "for a UIComponentClassicTagBase w/ a " +
                        "JSP id of " + tag.getJspId());
           
            if( ! ( component instanceof ActionSource ) )
                throw new JspException("Component w/ id of " + component.getId()
                        + " is associated w/ a tag w/ JSP id of " + tag.getJspId()
                        + ". This component is of type " + component.getClass()
                        + ", which is not an " + ActionSource.class );
           
            if(log.isDebugEnabled())
                log.debug(" ... register it with the UIComponent " +
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.