}
/*
* 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)
{
ContextHelper.validateElement(ctx, widget.getDictionary(), ANNOTATIONS_PROCESS);
COSBase act = widget.getDictionary().getDictionaryObject(COSName.A);
if (act != null)
{
addValidationError(ctx, new ValidationError(ERROR_ACTION_FORBIDDEN_WIDGET_ACTION_FIELD,
"\"A\" must not be used in a Field dictionary"));
res = false;