jsf2.0 - How to get the values in other jsf page's bean in request scope

后端 未结 3 754
夕颜
夕颜 2021-01-16 06:12

I have two pages myaccount.xhtml and selectbank.xhtml In my account page there is one option for recharge account in which user will enter the amount when user will press su

3条回答
  •  清酒与你
    2021-01-16 06:22

    Your use case is not of simple request/response cycle, the life span is more than one request response which makes it candidate for session scope.

    Using hidden variable or GET parameters in URL is not good practice especially for a banking application. Where security is so important dont compromise on small memory foot print.

    If flash scope map simplifies the case you can use it, but I would not go for such a thing.

    Update: Forgot to mention you can check Conversation scope too.

提交回复
热议问题