I’m using Play Framework (2.0.3) and I have this kind of form elements :
<input type="text" name="element-name" value="" />
Server side, I have a simple Form class :
public class MyForm {
@Constraints.Required
public String elementName;
}
of course, it doesn’t work.
How can I do this? Are there annotations to indicate with name to match?
Use the same name in your HTML form:
or bind it manually from the DynamicForm