Esempio n. 1
0
  public void submit() {
    errorLabel.setText(null);
    Widgets.hide(errorLabel);
    try {
      field.submit();
    } catch (Exception ex) {
      log.info(ex);
      errorLabel.setText(Str.formatException(ex));
      Widgets.showAsBlock(errorLabel);
      return;
    }

    Updatable updatable = field.getUpdatable();
    if (updatable != null) updatable.update();
    field.update();

    if (dialog == null) return;
    dialog.hide();
    dialog = null;
  }