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);