Binding null value enums
Bug #524689 reported by
Paweusz
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
play framework | Status tracked in 1.0 | |||||
1.0 |
Fix Released
|
Medium
|
Nicolas Leroux | |||
1.1 |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
In play.data.
// Enums
if (Enum.class.
if (value == null || value.length == 0) {
}
}
It works fine until one wants to pass null value for enum from html form. In that situation value[0] would contain empty string which causes "No enum const " exception. This in turn causes #{ifErrors} tag to return true.
To post a comment you must log in.
I encountered the same problem:
http:// groups. google. com/group/ play-framework/ browse_ thread/ thread/ 67a8eb864359c3b b?hl=en