Removing JSF messages from the flash

后端 未结 3 2007
天命终不由人
天命终不由人 2020-12-16 03:23

I have one page that does something and when the user clicks a button, the user is redirected to another page and a message is displayed. Here is my code:

 p         


        
3条回答
  •  离开以前
    2020-12-16 03:50

    Your concrete problem is caused by a bug in older Mojarra versions, specifically issue 1751. There have however been many issue reports for the flash scope afterwards. The flash scope is in older Mojarra versions known for the following major problems:

    • issue 1751 - Flash scoped messages lives longer than next request - fixed in 2.0.7 / 2.1.4
    • issue 2126 - Flash cookie enables data exploits - fixed in 2.1.24 / 2.2.1
    • issue 2136 - Flash cookie not available when redirected to different path - fixed in 2.1.14 / 2.2.0
    • issue 2902 - Flash cookie uses wrong path for applications on root - fixed in 2.1.24 / 2.2.1
    • issue 2955 - Flash creates sometimes version1 cookies which fails in IE<=10 - fixed in 2.1.25 / 2.2.2
    • issue 2973 - Flash causes NPE on stale cookies after a session expire - fixed in 2.1.25 / 2.2.2
    • issue 2862 - Flash cookie not cleared when stale - fixed in 2.1.27 / 2.2.5

    All in all, concluded can be that you'd need to upgrade to a minimum of Mojarra 2.1.27 / 2.2.5 (due date 2 january 2014) in order to get rid of all those problems.

提交回复
热议问题