myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Schofield <>
Subject Re: dataTable generating huge serialized jsf trees
Date Mon, 09 May 2005 14:52:02 GMT
I haven't looked into this, but if true, this is a serious problem. 
When I get a chance I will try and look into this (and see what the
spec says about it.)


On 5/8/05, Sylvain Vieujot <> wrote:
>  When an h:dataTable or x:dataTable saves it's state, it serializes all the
> data held in it's value even if preserveDataModel is false.
>  This is because HtmlDataTable is a subsclass of UIData, and
> UIData.saveState saves it's value object.
>  This is a problem if your dataTable displays rows of a large database table
> because it serializes the all table.
>  This can cause the server and/or the client to be very slow or to crash.
>  => Is it expected that h:dataTable serializes it's value when it saves it's
> state ?
>  => In HtmlDataTable.saveState, shouldn't we call super.setValue(null)
> before getting super.saveState(context) to avoid this ?
>  Also, I guess that when preserveDataModel="true", the data is saved twice,
> because the hidden jsf_tree_64 field gets almost twice as big. But I need to
> check this more carefully.
>  Thanks,
>  Sylvain.

View raw message