select fields displaying in playframework's CRUD
I faced a little problem using playframework's CRUD.
The select inputs were displaying the object type and it's number like this :
Like it is said on the playframework documentation : The default list view uses only one column containing the result of the object’s toString() method.
The same method is used for displaying the name of the input on the blank/show form.
With redefining the toString() method, you can have this result :
Hope it helped :)
Written by Amine Bou
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#