[richfaces-issues] [JBoss JIRA] (RF-13230) Resetting table state on extendedDataTable does not reset table when using ajax re-render

Matej Novotny (JIRA) issues at jboss.org
Thu Dec 12 05:38:33 EST 2013


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

Matej Novotny commented on RF-13230:
------------------------------------

[~ibenjes], I tried using your example but came across several problems.
I made some changes to make the example fully working. The function sort() is working but requires two arguments, column ID and sort order (eg. descending/descending).
The conversation scoped bean you are using does not seem to have any effect as you do not start/end conversation eg. it behaves as view scoped if I am not mistaken - still I used it to reproduce the problem. Also I removed the Logger as it is not needed for the example.

Now to the result. I used Metamer (our testing app) with 4.3.3.Final and current 4.3.x.
The bug described in the forum can be found in *both* versions, so it is *not regression*. In both version there is a problem you just described that the state does not affect first page unless you use data scroller. Without data scroller everything works correctly.

I will add a tests for this issue to 4.3.x and also check it in version 5 and report further details.

By the way, the forum link you gave leads to RF-13226 and not this issue, is that a copy of this isue then? (problem seems pretty much the same)
                
> Resetting table state on extendedDataTable does not reset table when using ajax re-render
> -----------------------------------------------------------------------------------------
>
>                 Key: RF-13230
>                 URL: https://issues.jboss.org/browse/RF-13230
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-tables
>    Affects Versions: 4.3.4
>            Reporter: Immo Benjes
>            Assignee: Matej Novotny
>              Labels: regression
>             Fix For: 4.3.5
>
>
> On a extendedDataTable resetting the table state and then re-rendering the table via ajax does not work, the table still shows the custom column ordering  and column width. Only when reloading the complete page, the table is displayed in its default form.
> To reproduce:
> rich:extendedDataTable with tableState help in a (e.g. Seam conversation scoped bean). Change the column ordering, now call an ajax method that resets the table state to null or an empty string. Re-render the table after completion. The column ordering stays the same.
> This used to work on RF 4.3.3

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list