@Override
  public void onValueChange(final PValueChangeEvent<Date> event) {
    calendar = Calendar.getInstance();
    calendar.setTime(event.getValue());

    for (final FormFieldComponent<PDateBox> field : fields) {
      field.getInput().setValue(event.getValue());
    }
  }
  @Override
  public void onValueChange(final PValueChangeEvent<Date> event) {
    this.value = event.getValue();

    for (final FormFieldComponent<PDateBox> field : fields) {
      field.getInput().setValue(value);
    }
  }