Class DemoHtmlFormsDynamicFieldsController
java.lang.Object
org.spincast.website.controllers.demos.DemoHtmlFormsDynamicFieldsController
HTML Forms - Dynamic Fields demo controller
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDemoHtmlFormsDynamicFieldsController
(FlashMessageFactory flashMessageFactory, JsonManager jsonManager, ValidationFactory validationFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected JsonObject
Creates a first default uservoid
dynamicFields
(AppRequestContext context) Dynamic Fields demo - GETvoid
dynamicFieldsSubmit
(AppRequestContext context) Dynamic Fields demo - POSTprotected FlashMessageFactory
protected JsonManager
protected Integer
getUserToAddTagTo
(AppRequestContext context) Checks if there is a User to add, server-side.protected ValidationFactory
protected void
validateForm
(Form form) Validation of the form.protected ValidationSet
validateUser
(JsonObject user) Validation of a user.
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
-
Constructor Details
-
DemoHtmlFormsDynamicFieldsController
@Inject public DemoHtmlFormsDynamicFieldsController(FlashMessageFactory flashMessageFactory, JsonManager jsonManager, ValidationFactory validationFactory)
-
-
Method Details
-
getFlashMessageFactory
-
getJsonManager
-
getValidationFactory
-
dynamicFields
Dynamic Fields demo - GET -
createFirstUser
Creates a first default user -
dynamicFieldsSubmit
Dynamic Fields demo - POST -
getUserToAddTagTo
Checks if there is a User to add, server-side. -
validateForm
Validation of the form. There is no need to return anything : the validation results are saved in the form itself. -
validateUser
Validation of a user.
-