Examples of UIGraphic


Examples of javax.faces.component.UIGraphic


    protected void setProperties(UIComponent component) {
        super.setProperties(component);

        UIGraphic graphic = null;
        try {
            graphic = (UIGraphic) component;
        } catch (ClassCastException cce) {
            throw new FacesException("Tag <" + getClass().getName() + "> expected UIGraphic. " +
                                     "Got <" + component.getClass().getName() + ">");
        }

        if (url != null) {
            if (FacesUtils.isExpression(url)) {
                graphic.setValueBinding("url", createValueBinding(url));
            } else {
                graphic.setUrl(url);
            }
        }

        if (value != null) {
            if (FacesUtils.isExpression(value)) {
                graphic.setValueBinding("value", createValueBinding(value));
            } else {
                graphic.setValue(value);
            }
        }

        setProperty(component, "alt", alt);
        setProperty(component, "dir", dir);
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.