Grid inline editing and CustomField

Hello,

I try to setup Grid’s inline editing where one of the editors is extending CustomeField. Unfortunatelly this editor is not painted in the editor popup and some JS errors appears.

Please advice.

It happens to be a bug, that I’m working around now, but will be good to be fxed.

Workaround is in explicit marking dirty all field’s children. I believe this can be fixed into the Vaadin.

public class ExtendedComboBox extends CustomField<Object> {
  private HorizontalLayout fieldLayout;

  @Override
  protected Component initContent() {
    fieldLayout = new HorizontalLayout();
    fieldLayout.setWidth("100%");

    PersonComboBox personComboBox = new PersonComboBox();
    fieldLayout.addComponent(personComboBox);
    fieldLayout.setExpandRatio(personComboBox, 1.0f);

    Button addPersonButton = new Button("New");
    fieldLayout.addComponent(addPersonButton);

    return fieldLayout;
  }

  /**
   * Explicit mark field's layout and all its children as dirty,
   * because when this field is used as a {@link Grid} editor,
   * children connectors are not registered and included into the
   * connector's hierarchy
   */
  public void markAsDirty() {
    super.markAsDirty();
    if (null != fieldLayout) {
      fieldLayout.markAsDirtyRecursive();
    }
  }
}

Hi!
I posted it on Track, and now it is in reviewing:
https://dev.vaadin.com/ticket/17459#comment:1