Default values for new objects in CRUD
Bug #520924 reported by
Paweusz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
play framework |
Fix Committed
|
Undecided
|
Unassigned | ||
1.0 |
Won't Fix
|
Undecided
|
Unassigned | ||
1.1 |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
There is now no way to fill new objects in CRUD with default values. Framework calls CURD.blank
method but it passes only ObjectType to template. If we overload that method and return object filled with default data,
template form renders as in edit mode. One way to by-pass this issue is to override default blank.html and fill html fields with default values, but I think better solution is to enable developer to fill object in code and then pass it to rendering phase.
Original discussion can be found at:
http://
Related branches
Changed in play: | |
status: | New → Fix Committed |
To post a comment you must log in.