Package play.data
Class FormFactory
java.lang.Object
play.data.FormFactory
Helper to create HTML forms.
-
Constructor Summary
ConstructorsConstructorDescriptionFormFactory(MessagesApi messagesApi, Formatters formatters, jakarta.validation.ValidatorFactory validatorFactory, com.typesafe.config.Config config) -
Method Summary
-
Constructor Details
-
FormFactory
@Inject public FormFactory(MessagesApi messagesApi, Formatters formatters, jakarta.validation.ValidatorFactory validatorFactory, com.typesafe.config.Config config)
-
-
Method Details
-
form
- Returns:
- a dynamic form.
-
form
- Type Parameters:
T- the type of value in the form.- Parameters:
clazz- the class to map to a form.- Returns:
- a new form that wraps the specified class.
-
form
- Type Parameters:
T- the type of value in the form.- Parameters:
name- the form's name.clazz- the class to map to a form.- Returns:
- a new form that wraps the specified class.
-
form
- Type Parameters:
T- the type of value in the form.- Parameters:
name- the form's nameclazz- the class to map to a form.groups- the classes of groups.- Returns:
- a new form that wraps the specified class.
-
form
- Type Parameters:
T- the type of value in the form.- Parameters:
clazz- the class to map to a form.groups- the classes of groups.- Returns:
- a new form that wraps the specified class.
-