Here are the examples of the java api play.data.name taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
14
Source : Application.java
with MIT License
from vangav
with MIT License
from vangav
/**
* Handles the form submission.
*/
public static Result sayHello() {
Form<Hello> form = form(Hello.clreplaced).bindFromRequest();
if (form.hasErrors()) {
return badRequest(index.render(form));
} else {
Hello data = form.get();
return ok(hello.render(data.name, data.repeat, data.color));
}
}