myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "Working With DataTable And PreserveDataModel" by Enrique Medina
Date Thu, 01 Sep 2005 18:03:44 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by Enrique Medina:
http://wiki.apache.org/myfaces/Working_With_DataTable_And_PreserveDataModel

------------------------------------------------------------------------------
  
  1) One in the RENDER PHASE by the HtmlTableRenderer as a consequence of the execution of
the HtmlTableTag doEndTag() method (obviously to be able to 'paint' the data in the view)
  
- 2) Another one again in the RENDER PHASE, but this time due to the execution of the ViewTag
doAfterBody() method, that in turn calls the UIViewRoot processSaveState() method, and then
the HtmlDataTable saveState() method. More precisely, when saving the state of the dataTable,
as we have set preservedDataModel to "true", the data is again request from the backend to
be serialized and stored in the session (if server state saving) or the client (if client
state saving, gzipping and base 64 enconding it).
+ 2) Another one again in the RENDER PHASE, but this time due to the execution of the ViewTag
doAfterBody() method, that in turn calls the UIViewRoot processSaveState() method, and then
the HtmlDataTable saveState() method. More precisely, when saving the state of the dataTable,
as we have set preservedDataModel to "true", the data is again requested from the backend
to be serialized and stored in the session (if server state saving) or the client (if client
state saving, gzipping and base 64 enconding it).
  
  b) If the dataTable is defined with its preserveDataModel set to "false", then the data
from your backend will be requested only once (as there is no need to serialize the data):
  

Mime
View raw message