{
if (!(component instanceof HtmlOutputFormat))
{
throw new IllegalArgumentException("Component " + component.getClass().getName() + " is no HtmlOutputFormat");
}
HtmlOutputFormat comp = (HtmlOutputFormat)component;
super.setProperties(component);
if (_style != null)
{
comp.setValueExpression("style", _style);
}
if (_escape != null)
{
comp.setValueExpression("escape", _escape);
}
if (_dir != null)
{
comp.setValueExpression("dir", _dir);
}
if (_styleClass != null)
{
comp.setValueExpression("styleClass", _styleClass);
}
if (_converter != null)
{
if (!_converter.isLiteralText())
{
comp.setValueExpression("converter", _converter);
}
else
{
String s = _converter.getExpressionString();
if (s != null)
{
Converter converter = getFacesContext().getApplication().
createConverter(s);
comp.setConverter(converter);
}
}
}
if (_value != null)
{
comp.setValueExpression("value", _value);
}
if (_title != null)
{
comp.setValueExpression("title", _title);
}
if (_lang != null)
{
comp.setValueExpression("lang", _lang);
}
}