*
* @see org.ajax4jsf.components.taglib.html.HtmlCommandButtonTagBase#setProperties(javax.faces.component.UIComponent)
*/
protected void setProperties(UIComponent component) {
super.setProperties(component);
UIInsert insertComponent = (UIInsert) component;
if (this._content != null) {
if (this._content.isLiteralText()) {
try {
String __content = (String) getFacesContext().getApplication().getExpressionFactory().coerceToType(
this._content.getExpressionString(), String.class);
insertComponent.setContent(__content);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("content", this._content);
}
}
if (this._src != null) {
if (this._src.isLiteralText()) {
try {
String __src = (String) getFacesContext().getApplication().getExpressionFactory().coerceToType(
this._src.getExpressionString(), String.class);
insertComponent.setSrc(__src);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("src", this._src);