import org.apache.commons.lang3.StringUtils;
+import com.vaadin.ui.Component;
+
import eu.etaxonomy.cdm.model.common.CdmBase;
import eu.etaxonomy.cdm.ref.TypedEntityReference;
import eu.etaxonomy.cdm.vaadin.event.EditorActionContextFormat.TargetInfoType;
if (propertyIdPath != null) {
targetInfo = propertyIdPath.toString();
}
+ } else {
+ // TargetInfoType.FIELD_CAPTION
+ if(parentCtx.getTargetField() != null){
+ Component captionComponent = parentCtx.getTargetField();
+ while(captionComponent != null){
+ targetInfo = captionComponent.getCaption();
+ if(targetInfo != null){
+ break;
+ }
+ captionComponent = captionComponent.getParent();
+ }
+ }
}
}
}