web - Play Framework's JavaForms -
so in javaforms section of play 2.1.1 documentation, there line of code:
form<user> userform = form(user.class);
where "form(user.class)" function come from?
http://www.playframework.com/documentation/2.1.1/javaforms
thanks in advance.
form(...)
static method of play.data.form
class.
if import play.data.form
, can use form.form(user.class)
or can static import use form(user.class)
syntax : import static play.data.form.form;
Comments
Post a Comment