Does view scope bean survive Navigation JSF

前端 未结 3 707
迷失自我
迷失自我 2020-11-28 10:31

I am quite confused with the view scope. I thought it could survive a JSF navigation to another page (no redirect, obviously), but it doesn\'t. So what\'s the advantage to u

3条回答
  •  -上瘾入骨i
    2020-11-28 11:10

    Maybe you are looking for the FlowScoped bean:

    Faces Flows

    The Faces Flows feature of JavaServer Faces technology allows you to create a set of pages with a scope, FlowScoped, that is greater than request scope but less than session scope. For example, you might want to create a series of pages for the checkout process in an online store. You could create a set of self-contained pages that could be transferred from one store to another as needed.

提交回复
热议问题