playframework - How to prefill a dropdown using scala template and play framework -
i using scala template , play 2.0 framework project. let's have user form fields name (textfield), age (dropdown). while creating user filled name dave , selected age 25. now on edit screen, want values prefilled, know how textfield (i.e. set value userform('name')) dropdown? how it. thanks shawn downs , biesior. well, can use @select scala helper class show pre-filled result. like. @select(userform("age"),models.age.values().tolist.map(v => (v.getdisplayname(), v.getdisplayname())),'id->"age") to show other options have used enum of possible values of age.