Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please mark required fields on FormView #39

Closed
max-dev opened this issue Feb 16, 2013 · 4 comments
Closed

Please mark required fields on FormView #39

max-dev opened this issue Feb 16, 2013 · 4 comments
Assignees
Labels
Milestone

Comments

@max-dev
Copy link
Member

max-dev commented Feb 16, 2013

No description provided.

@ghost ghost assigned max-dev Oct 20, 2013
max-dev added a commit that referenced this issue Oct 21, 2013
#39 Please mark required fields on FormView
@ghost ghost assigned ikostenko Oct 21, 2013
@max-dev
Copy link
Member Author

max-dev commented Oct 21, 2013

Done

@max-dev max-dev closed this as completed Oct 21, 2013
@ikostenko
Copy link
Member

Bug found (by automated tests)
If a numeric field is not marked as required, it is not autofilled with 0 on clearing the field value
See the failing tests: http://lightadmin.org/jenkins/job/LightAdmin%20Selenium/org.lightadmin$lightadmin-tests/138/testReport/

@ikostenko
Copy link
Member

A field with @Column(nullable=false) is marked as reqiured, but is not validated

@ikostenko ikostenko reopened this Oct 30, 2013
@max-dev
Copy link
Member Author

max-dev commented Nov 1, 2013

LightAdmin validation is based on JSR-303 Bean Validation spec.
You should annotate your fields with one of @ NotNull, @ NotBlank or @notempty annotations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants