Class DemoHtmlFormsDynamicFieldsController

java.lang.Object
org.spincast.website.controllers.demos.DemoHtmlFormsDynamicFieldsController

public class DemoHtmlFormsDynamicFieldsController extends Object
HTML Forms - Dynamic Fields demo controller
  • Field Details

    • logger

      protected static final org.slf4j.Logger logger
  • Constructor Details

  • Method Details

    • getFlashMessageFactory

      protected FlashMessageFactory getFlashMessageFactory()
    • getJsonManager

      protected JsonManager getJsonManager()
    • getValidationFactory

      protected ValidationFactory getValidationFactory()
    • dynamicFields

      public void dynamicFields(AppRequestContext context)
      Dynamic Fields demo - GET
    • createFirstUser

      protected JsonObject createFirstUser()
      Creates a first default user
    • dynamicFieldsSubmit

      public void dynamicFieldsSubmit(AppRequestContext context)
      Dynamic Fields demo - POST
    • getUserToAddTagTo

      protected Integer getUserToAddTagTo(AppRequestContext context)
      Checks if there is a User to add, server-side.
    • validateForm

      protected void validateForm(Form form)
      Validation of the form. There is no need to return anything : the validation results are saved in the form itself.
    • validateUser

      protected ValidationSet validateUser(JsonObject user)
      Validation of a user.