users@javaserverfaces.java.net

Re: Is rendered output buffered or streamed?

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Tue, 18 Sep 2007 10:12:13 -0700

It depends on the version.

If you're using 1.2_04 or later, the response won't be buffered until a
state marker has been written. At that point buffering
begins in order to support writing the state after the the rendering of
the component tree has completed.



Gurkan Erdogdu wrote:
> JSF 1.2 RI uses buffering I think and use context parameter to size
> buffering name as *'com.sun.faces.responseBufferSize* '
>
> ----- Original Message ----
> From: Mikael Andersson <mail.micke_at_gmail.com>
> To: users_at_javaserverfaces.dev.java.net
> Sent: Tuesday, September 18, 2007 10:52:40 AM
> Subject: Is rendered output buffered or streamed?
>
> Hi
>
> I wonder if JSF 1.2 RI is buffering the rendered output, or if it is
> streaming it back to the browser?
>
> Asking because I had an issue a while ago with the the myfaces
> extension filter which buffered everything before writing the response
> to the client, which caused memory problems when rendering a lot of
> data.
>
> Many thanks,
> Mike
>
>
> ------------------------------------------------------------------------
> Shape Yahoo! in your own image. Join our Network Research Panel today!
> <http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7>