[richfaces-issues] [JBoss JIRA] Issue Comment Edited: (RF-9426) Check iteration state saving for facets of dataTable component

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Fri Apr 15 11:22:33 EDT 2011


    [ https://issues.jboss.org/browse/RF-9426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12594558#comment-12594558 ] 

Nick Belaevski edited comment on RF-9426 at 4/15/11 11:22 AM:
--------------------------------------------------------------

Fix in the linked issue is affecting children state saving functionality, so before resolving the issue we should check whether it's been fixed already with the linked issue resolution. If not, then we should check the correct functionality of the use-case described in the linked issue after fixing this one.

      was (Author: nbelaevski):
    Fix in the linked issue is affecting children state saving functionality, so before resolving the issue we should check whether it's been fixed already with the libnked issue resolution. If not, then we should check the correct functionality of the use-case described in the linked issue.
  
> Check iteration state saving for facets of dataTable component 
> ---------------------------------------------------------------
>
>                 Key: RF-9426
>                 URL: https://issues.jboss.org/browse/RF-9426
>             Project: RichFaces
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: architectural, component-tables, optimization
>    Affects Versions: 4.0.0.Milestone3
>            Reporter: Nick Belaevski
>            Assignee: Nick Belaevski
>              Labels: tran
>             Fix For: 4.Future
>
>
> Here is the excerpt from the letter I've just received:
> >>>> There is memory leak in UIDataAdaptorBase/rich:dataTable.
> >>>> It affects:
> >>>> - external filtering (input in "header" facet)
> >>>> - embedded filtering ("filterBy" column attribute) - facet
> >>>> "filterValueInput" is added internally
> >>>>
> >>>> Code in UIDataAdaptorBase#saveChildState:
> >>>> itr = c.getFacets().values().iterator();
> >>>> while (itr.hasNext()) {
> >>>>    saveChildState(faces, (UIComponent) itr.next(), childState);
> >>>> }
> >>>>
> >>>> Column facet state is saved in the view for each row.
> >>>>
> >>>> For the table with 500 rows 5 columns with filtering that resulst in
> >>>> 350kB
> >>>> of extra view size.
> >>>> UIDataAdaptorBase$DataState size - 350 kB
> >>>> There are 2500 (500 rows * 5 columns) instances of
> >>>> UIDataAdaptorBase$SavedState.
> >>>>
> >>>> The same table without filtering does not have this issue and
> >>>> UIDataAdaptorBase$DataState size is 1 kB.
> >>>>
> This affects 3.x. Please check if 4.x is affected by the problem. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list