Form flow samples

List

  name age sex blood language
Alice 20 Female AB EnglishChinese
Bob 25 Male O JapaneseEnglish
xsj24 12 Male B English
12309 43 Male O EnglishJapanese
11 11 Male A English
  • declare an url rule for a single input step form
  • define a common button template file for all the form pages
  • render option data for select, radio and checkbo by snippet
  • request handler
    • form initialization
    • update form data to database
    • output update result message to default global message bar
  • validation
    • annotate form field on form POJO
      • extend from the entity POJO
      • customize field name by nameLable of form field annotation
    • annotate bean validation on entity POJO
    • use default validation message generation mechanism
    • output validation messages to default global message bar