}
else if (UIComponent.isCompositeComponent(parent))
{
if (getFor() == null)
{
throw new TagException(_delegate.getTag(), "is nested inside a composite component"
+ " but does not have a for attribute.");
}
mctx.addAttachedObjectHandler(parent, _delegate);
}
else
{
throw new TagException(_delegate.getTag(), "Parent not composite component or an instance of EditableValueHolder: " + parent);
}
}
}