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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -