// ---- The widget validation will be done by the widget annotation, a
// widget contained in a Field can't have action.
PDAnnotationWidget widget = aField.getWidget();
if (res && widget != null) {
AnnotationValidator widgetVal = annotFact.getAnnotationValidator( widget.getDictionary(), handler, error);
widgetVal.validate(error);
COSBase act = widget.getDictionary().getDictionaryObject(DICTIONARY_KEY_ACTION);
if (act != null) {
error.add(new ValidationError(
ERROR_ACTION_FORBIDDEN_WIDGET_ACTION_FIELD, "\"A\" must not be used in a Field dictionary"));