if (parentComponent instanceof ActionSource)
{
if (_assignTo != null) {
if (_assignTo.isLiteralText()) throw new IllegalArgumentException(Messages.getMessage(Messages.NO_VALUE_REFERENCE_ERROR_2, _assignTo));
UIActionParameter al = (UIActionParameter)component;
al.setAssignToBinding(_assignTo);
if (_converter != null)
{
if (!_converter.isLiteralText()) {
component.setValueExpression("converter", _converter);
} else {
Converter conv = FacesContext.getCurrentInstance().getApplication().createConverter(_converter.getExpressionString());
al.setConverter(conv);
}
}
((ActionSource)parentComponent).addActionListener(al);
}
}