ICEfaces
  1. ICEfaces
  2. ICE-8594

ace:dataTable enhancement - cancel sort / filter if validation fails

    Details

      Description


      Revert the state of the DataTable to the previous sort, if the during this request a component fails validation.

        Activity

        Hide
        Nils Lundquist added a comment - - edited

        This is currently implemented correctly on the server, however a callback will need to be implemented on the client to revert the internal state changes that resulted from the sort action. The same will need to be done for filter- the filter value needs to be cleared on the client by the failed validation.

        Show
        Nils Lundquist added a comment - - edited This is currently implemented correctly on the server, however a callback will need to be implemented on the client to revert the internal state changes that resulted from the sort action. The same will need to be done for filter- the filter value needs to be cleared on the client by the failed validation.
        Hide
        Arran Mccullough added a comment - - edited

        Support case #11501

        Show
        Arran Mccullough added a comment - - edited Support case #11501
        Hide
        Ken Fyten added a comment - - edited

        Assignee Priority: P1
        Recent commit for this JIRA is resulting in the following exception during session serialization. SortState needs to be made Serializable, or transient as applicable.

        showcase (FF14, tomcat7):
        Manual Test Results:
        DataTable - Overview - clicking to sort items on this page causes a java.io.NotSerializableException in server log (after this, all left-side links become non-functional):
        SEVERE: Exiting serializeView - Could not serialize state: org.icefaces.ace.comp
        onent.datatable.SortState
        java.io.NotSerializableException: org.icefaces.ace.component.datatable.SortState
                at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
                at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330)
                at java.util.HashMap.writeObject(HashMap.java:1001)
                at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        sorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)...
        
        Show
        Ken Fyten added a comment - - edited Assignee Priority: P1 Recent commit for this JIRA is resulting in the following exception during session serialization. SortState needs to be made Serializable, or transient as applicable. showcase (FF14, tomcat7): Manual Test Results: DataTable - Overview - clicking to sort items on this page causes a java.io.NotSerializableException in server log (after this , all left-side links become non-functional): SEVERE: Exiting serializeView - Could not serialize state: org.icefaces.ace.comp onent.datatable.SortState java.io.NotSerializableException: org.icefaces.ace.component.datatable.SortState at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:330) at java.util.HashMap.writeObject(HashMap.java:1001) at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)...
        Hide
        Nils Lundquist added a comment -

        Revision #32615
        Committed by nils.lundquist
        A minute ago
        ICE-8594 - SortState/FilterState now transient fields of the DataTable instance rather than state saved fields of the DataTable component.

        Show
        Nils Lundquist added a comment - Revision #32615 Committed by nils.lundquist A minute ago ICE-8594 - SortState/FilterState now transient fields of the DataTable instance rather than state saved fields of the DataTable component.

          People

          • Assignee:
            Nils Lundquist
            Reporter:
            Nils Lundquist
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: