Search in sources :

Example 1 with RequiredValueMissingException

use of com.haulmont.cuba.gui.components.RequiredValueMissingException in project cuba by cuba-platform.

the class DesktopDateField method validate.

@Override
public void validate() throws ValidationException {
    if (!isVisible() || !isEditableWithParent() || !isEnabled())
        return;
    try {
        constructDate();
        super.validate();
    } catch (RequiredValueMissingException e) {
        throw e;
    } catch (Exception e) {
        throw new ValidationException(e);
    }
}
Also used : ValidationException(com.haulmont.cuba.gui.components.ValidationException) RequiredValueMissingException(com.haulmont.cuba.gui.components.RequiredValueMissingException) ValidationException(com.haulmont.cuba.gui.components.ValidationException) ParseException(java.text.ParseException) RequiredValueMissingException(com.haulmont.cuba.gui.components.RequiredValueMissingException)

Aggregations

RequiredValueMissingException (com.haulmont.cuba.gui.components.RequiredValueMissingException)1 ValidationException (com.haulmont.cuba.gui.components.ValidationException)1 ParseException (java.text.ParseException)1