Getting warning from JSF: The response was already committed by the time we tried to set the outgoing cookie for the flash

后端 未结 4 1913
夕颜
夕颜 2020-12-08 08:02

I have a page1.jsf, in this page i have a commandButton that put an object in ELFlash, and redirects to page2.jsf. In this page i recover the object by ELFlash. Everything w

4条回答
  •  萌比男神i
    2020-12-08 08:43

    Instead of using a Filter as mentioned in @Rafal K answer, you can also increase the response buffer size by setting a context parameter in your web.xml

    
    
        javax.faces.FACELETS_BUFFER_SIZE
        131072
    
    

    The size is given in bytes and should be larger than your biggest page. You can easily check the size of your pages in Firefox by right clicking and selecting View Page Info.

提交回复
热议问题