myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger (JIRA)" <myfaces-...@incubator.apache.org>
Subject [jira] Created: (MYFACES-545) getDataModel should be cached rather than called twice in RENDER PHASE for t:dataTable when preserveDataModel="true",
Date Fri, 09 Sep 2005 14:27:30 GMT
getDataModel should be cached rather than called twice in RENDER PHASE for t:dataTable when
preserveDataModel="true",
---------------------------------------------------------------------------------------------------------------------

         Key: MYFACES-545
         URL: http://issues.apache.org/jira/browse/MYFACES-545
     Project: MyFaces
        Type: Improvement
  Components: Tomahawk  
    Versions: Nightly Build    
    Reporter: Mike Kienenberger
    Priority: Minor


On 9/1/05, Enrique Medina <e.medina.m@gmail.com> wrote:
> >  a) If the dataTable is defined with its preserveDataModel set to "true",
> > then the data from your backend will be requested twice:
> >
> >  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).

On 9/1/05, Mathias Brökelmann <mbroekelmann@googlemail.com> wrote:
> The second time is not necessary but it is implemented as You said.
> We should change this because that would make it possible (at least
> theoretically) that the data changed between the two calls.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message