Form flow samples


  name age sex blood language
Alice 20 Female AB ChineseEnglish
Bob 25 Male O JapaneseEnglish
admin 12 Male A EnglishJapanese
guan 22 Male A English
a 11 Male A English
1 2 Male B English
Urie 27 Male O Chinese
Urie 28 Male O Chinese
asdf 12 Male A Chinese
vue 35 Female 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