7cfkha
Last Updated: February 25, 2016
·
893
· aminecmi

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 :
Picture

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 :
Picture

Hope it helped :)