Skip to content

bigclumsyoaf/play2-bug-validation-groups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

play2-bug-validation-groups

If I use validation groups, then they are ignored by the form helper classes.

My field is defined as:

    @Constraints.Required(groups={ NameRequired.class })
    private String name;

Then I create:

    Form.form( MyModel.class, NameNotRequired.class )

Calling

    @helper.inputText( form("name") )

Outputs the Required text, even though the form I am using does not require the name field.

The actual validation works fine, but the form input helper, is not checking validation groups.

About

Validation group bug with form helpers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors