Form flow samples


  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 form process with three steps: input, confirm and complete.
  • share form html definition between step pages by embedding
  • use static option data embed in html file rather than rendering by snippet
  • form data display mode
    • automatically generated display DOM at confirm page
    • custom predefined display DOM at complete page
  • define a common parent class to configure the common actions of form flow process
  • customized validation message generation
    • customized validation message DOM in html
    • specify message by form field annotation
    • extend TypeUnMatchValidator(retrieve message from resource bundle)
    • extend JsrValueValidator and customized bean validation initialization(custom message file)
  • output update success message to a specified DOM rather than the global message bar