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? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -