Skip to main content

JSF Tip #61 - What does 'com.sun.faces.responseBufferSize' do?

Posted by mriem on May 19, 2014 at 8:33 AM PDT

Note this blog is obsolete, see https://www.manorrock.com/blog/ for the current blog

If you want to determine the size of the response buffer the JSF runtime uses when buffering then the 'com.sun.faces.responseBufferSize' context-param allows you to set the size to something you want. The default is 1024 bytes, which is not big, but also not too large.

See the example snippet below which you could put in your faces-config.xml.

<context-param>
<param-name>com.sun.faces.responseBufferSize</param-name>
<param-value>8192</param-value>
</context-param>

Enjoy!