[richfaces-issues] [JBoss JIRA] (RF-13690) DataTable in uiRepeat - scrolling in table makes columns unsorted again
Michal Petrov (JIRA)
issues at jboss.org
Tue Jul 15 08:06:30 EDT 2014
[ https://issues.jboss.org/browse/RF-13690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985144#comment-12985144 ]
Michal Petrov commented on RF-13690:
------------------------------------
What we need to happen is for the {{setIndex()}} method to execute during RestoreViewPhase.
This is what's happening in {{FaceletPartialStateManagementStrategy.restoreView()}}:
{code}
Set<VisitHint> hints = EnumSet.of(VisitHint.SKIP_ITERATION, VisitHint.EXECUTE_LIFECYCLE);
VisitContext visitContext = VisitContext.createVisitContext(context, null, hints);
viewRoot.visitTree(visitContext, new VisitCallback() {
…
});
{code}
The {{VisitHint.SKIP_ITERATION}} is what prevents setIndex from executing.
We can intercept the creation of the visitContext in our {{ExtendedVisitContextFactory.getVisitContext()}} but I do not know if that is of any use.
> DataTable in uiRepeat - scrolling in table makes columns unsorted again
> -----------------------------------------------------------------------
>
> Key: RF-13690
> URL: https://issues.jboss.org/browse/RF-13690
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tables
> Affects Versions: 4.5.0.Alpha3
> Environment: WildFly 8.1.
> Reporter: Juraj Húska
> Assignee: Brian Leathem
> Labels: regression
> Fix For: 4.5.0.Alpha3
>
> Original Estimate: 4 hours
> Remaining Estimate: 4 hours
>
> When {{DataTable}} is nested in {{uiRepeat}}, then scrolling over the table with {{dataScroller}} makes sorting according to some column broken - the columns are unsorted.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the richfaces-issues
mailing list