*/
protected void setProperties(UIComponent component)
{
// TODO Auto-generated method stub
super.setProperties(component);
HtmlLoadStyle comp = (HtmlLoadStyle) component;
if (this._media != null) {
if (this._media.isLiteralText()) {
try {
java.lang.String __media = (java.lang.String) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._media.getExpressionString(),
java.lang.String.class);
comp.setMedia(__media);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("media", this._media);
}
}
if (this._src != null) {
if (this._src.isLiteralText()) {
try {
java.lang.Object __src = (java.lang.Object) getFacesContext().
getApplication().
getExpressionFactory().
coerceToType(this._src.getExpressionString(),
java.lang.Object.class);
comp.setSrc(__src);
} catch (ELException e) {
throw new FacesException(e);
}
} else {
component.setValueExpression("src", this._src);