I try to define defaul value for scala template parameter, like:
@(user: Form[User] = Form[User])
And I see compilation error:
object play.data.Form is not a value
whats wrong?
I try to define defaul value for scala template parameter, like:
@(user: Form[User] = Form[User])
And I see compilation error:
object play.data.Form is not a value
whats wrong?
Copyright © 2021 Jogjafile Inc.
Unfortunately it doesnt work like this, you have to define the Form's presentation. You may have in your User class:
And then you can use your template like this:
Hope this helps