}
@Override
protected void doEncodeChildren(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException
{
UIEqualityValidator ev = (UIEqualityValidator) component;
EditableValueHolder evh = null;
if (ev != null && ev.getParent() instanceof EditableValueHolder)
{
evh = (EditableValueHolder) ev.getParent();
}
if (evh == null)
throw new IllegalArgumentException("validateEquality tag must be nested in an EditableValueHolder (\"input tag\")");
if (!hasEqualityValidator(evh))
{
evh.addValidator(new EqualityValidator(ev.getFor(), ev.getMessage(), ev.getMessageId(), ev.getOperator()));
evh.setRequired(ev.isRequired());
}
renderChildren(context, component);
}