Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

Viritin disable js3 validation

Jean-Christophe Fortier
5 years ago Oct 27, 2016 2:42pm
Torsten Kruse
5 years ago Dec 16, 2016 8:30am
Jean-Christophe Fortier
5 years ago Dec 16, 2016 1:15pm
Torsten Kruse
5 years ago Dec 16, 2016 1:25pm
Jean-Christophe Fortier
5 years ago Dec 16, 2016 1:30pm
Torsten Kruse
5 years ago Dec 16, 2016 1:42pm
Jean-Christophe Fortier
5 years ago Dec 16, 2016 2:07pm
Torsten Kruse
5 years ago Dec 16, 2016 2:35pm
Jean-Christophe Fortier
5 years ago Dec 16, 2016 2:53pm
Torsten Kruse
5 years ago Dec 16, 2016 3:10pm
Jean-Christophe Fortier
5 years ago Dec 16, 2016 3:26pm
Torsten Kruse
5 years ago Dec 16, 2016 3:38pm

I finally solved this with overwriting setEntity() in CompanySearchForm.

@Override
    public MBeanFieldGroup<Company> setEntity(final Company entity) {

        final MBeanFieldGroup<Company> result = super.setEntity(entity);

        // remove all validation stuff from form
        result.clearValidators();
        result.getFields().forEach(f -> {
            f.setRequired(false);
            f.removeAllValidators();
        });

        return result;
    }
Jean-Christophe Fortier
5 years ago Dec 16, 2016 3:39pm
reza payambari
4 years ago Sep 19, 2017 10:50am