{
if (!(component instanceof HtmlInputHidden))
{
throw new IllegalArgumentException("Component " + component.getClass().getName() + " is no HtmlInputHidden");
}
HtmlInputHidden comp = (HtmlInputHidden)component;
super.setProperties(component);
if (_validatorMessage != null)
{
comp.setValueExpression("validatorMessage", _validatorMessage);
}
if (_validator != null)
{
comp.addValidator(new MethodExpressionValidator(_validator));
}
if (_requiredMessage != null)
{
comp.setValueExpression("requiredMessage", _requiredMessage);
}
if (_converterMessage != null)
{
comp.setValueExpression("converterMessage", _converterMessage);
}
if (_value != null)
{
comp.setValueExpression("value", _value);
}
if (_valueChangeListener != null)
{
comp.addValueChangeListener(new MethodExpressionValueChangeListener(_valueChangeListener));
}
if (_immediate != null)
{
comp.setValueExpression("immediate", _immediate);
}
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 (_required != null)
{
comp.setValueExpression("required", _required);
}
}