Not ideal, but see this thread for one way to achieve default values.
@inputRadioGroup( field = _form("payByCheck").copy( value=_form("payByCheck").value.map{Some(_)}.getOrElse(Some("false")) ), options("false"-> "No", "true"-> "Yes"), '_label-> "Pay By Check?" )
The problem here is that we completely separated the model from the form. A better approach would be to render the form in some way contain the default values ββfrom these scala 2.9.x impenetrable black boxes, known as case classes.
Alas, it does not happen, it seems, I would like to hear otherwise. Call back if you have a product, only provided this answer, because this is the only thing I found during the last two meaningless hours of searching, trial and error; -)
source share