I have a input of date type. The attribute is like this:
@Formats.DateTime(pattern="dd/MM/yyyy")
public Date prazo;
In the *.scala.html
file, I tried this:
@helper.input(pedidoForm("prazo"), '_label -> "Prazo", '_help -> "") { (id, name, value, args) =>
<input type="date" name="@name" id="@id" maxlength="14" @toHtmlArgs(args)>
}
and
@inputDate(pedidoForm("prazo"), '_label -> "Prazo", '_help -> "")
It compiles and seems to work fine, but in the controller I have something like:
Form<Pedido> pedidoForm = form(Pedido.class).bindFromRequest();
...
pedidoForm.get(); // throws execution exception
Does anyone have an idea of what can be happening??
Thanks for the attention.