@Override public void changeVariables(Object source, Map<String, Object> variables) { if (getValue() == null) { settingInitialValue = true; } super.changeVariables(source, variables); settingInitialValue = false; }
/** * Simulates receiving a date change from the client, via #changeVariables instead of #setValue (performs additional conversions) */ protected static void enterDate(DateField field, int year, Month month, int dayOfMonth, int hour, int minute) { field.changeVariables(null, ImmutableMap.of( "year", year, "month", month.getValue(), "day", dayOfMonth, "hour", hour, "min", minute)); }