mardi 21 avril 2015

Binding a datepicker form value in Play framework

I am using a datepicker in my page. The datepicker is described as follows:

<div class="form-group  " id="startDate_field">
    <label class="control-label col-md-2 " for="startDate">@Messages.get("event.startDate")</label>
    <div class="col-md-2">
        <div class="input-group date" id="startDatePicker">
            <input type="text" class="form-control" id="startdate" name="startDate" value='@{myForm.form("startDate")}'>
                <span class="input-group-addon">
                    <i class="glyphicon glyphicon-th">
                    </i>
                </span>
        </div>
    </div>
</div> 

Which gives me the compilation error:

value form is not a member of play.data.Form[models.Event]

How can I bind this value to the form value?

Aucun commentaire:

Enregistrer un commentaire