Best practices for “Back” navigation links in JSF

前端 未结 2 933
耶瑟儿~
耶瑟儿~ 2021-02-09 03:36

What is the best way to make \"Back\" links, so that the application stays consistent after navigation.

  • onclick=\"history.go(-1)\". Is this very harmf
2条回答
  •  佛祖请我去吃肉
    2021-02-09 04:17

    I'm using:

    • MyFaces orchestra for providing conversation scope
    • for each navigation rule

    This ensures that on pressing the "back" button or history.go(-1):

    • the data that has been available in the previous screen will be still there (because the conversation is still active)
    • the "resubmit" browser dialog won't open.

    P.S. "backlink" has a different meaning

提交回复
热议问题