ICEfaces
  1. ICEfaces
  2. ICE-11393

add source and destination location in event for ace:list

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-4.2.0.GA, EE-3.3.0.GA_P05
    • Fix Version/s: 4.3, EE-3.3.0.GA_P06
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ace

      Description

      Currently the event triggered from the ajax listener does not keep track of the location in the source list and the new location in the destination list (like old event.getOld.... and event.getNew... from other components).

      The user must instead do the following:-
      If you need the indexes, you could read the request parameter 'formId:listId_reorderings' and parse the value, which contain an array of arrays of two elements, where the first element is the source and the second element is the destination. So, for a single reordering it looks like this:c[[2,3]]. ......, not very developer friendly in this case.


        Activity

        Judy Guglielmin created issue -
        Judy Guglielmin made changes -
        Field Original Value New Value
        Assignee Arturo Zambrano [ artzambrano ]
        Judy Guglielmin made changes -
        Fix Version/s 4.3 [ 13096 ]
        Fix Version/s EE-3.3.0.GA_P07 [ 13118 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52385 Tue Apr 10 12:21:25 MDT 2018 art.zambrano ICE-11393 added ListMigrateEvent and ListMoveEvent for the ace:list migrate and move events, respectively, containing the indexes involved in the operation
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/list/ACEList.java
        Commit graph ADD /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/event/ListMigrateEvent.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/component/list/ListMeta.java
        Commit graph ADD /icefaces4/trunk/icefaces/ace/component/src/org/icefaces/ace/event/ListMoveEvent.java
        Hide
        Arturo Zambrano added a comment - - edited

        r52385: added ListMigrateEvent and ListMoveEvent for the ace:list migrate and move events, respectively, containing the indexes involved in the operation

        r52386: backported to the EE 3.3 maintenance branch

        Note that because certain operations involve multiple reorderings or migrations, these records are included in a list of MoveRecord and MigrationRecord objects, defined as inner classes in the event classes, respectively.

        Show
        Arturo Zambrano added a comment - - edited r52385: added ListMigrateEvent and ListMoveEvent for the ace:list migrate and move events, respectively, containing the indexes involved in the operation r52386: backported to the EE 3.3 maintenance branch Note that because certain operations involve multiple reorderings or migrations, these records are included in a list of MoveRecord and MigrationRecord objects, defined as inner classes in the event classes, respectively.
        Arturo Zambrano made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #52396 Thu Apr 12 13:50:43 MDT 2018 art.zambrano ICE-11393 added example of the new ListMoveEvent and ListMigrateEvent objects to their respective showcase demos
        Files Changed
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/list/listReorderAjax.xhtml
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/webapp/resources/examples/ace/listControl/listDual.xhtml
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/listControl/ListDualBean.java
        Commit graph MODIFY /icefaces4/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/list/ListReorderAjaxBean.java
        Hide
        Arturo Zambrano added a comment -

        r52396: added example of the new ListMoveEvent and ListMigrateEvent objects to their respective showcase demos

        Also tested successfully on MyFaces.

        Show
        Arturo Zambrano added a comment - r52396: added example of the new ListMoveEvent and ListMigrateEvent objects to their respective showcase demos Also tested successfully on MyFaces.
        Ken Fyten made changes -
        Fix Version/s EE-3.3.0.GA_P06 [ 13114 ]
        Fix Version/s EE-3.3.0.GA_P07 [ 13118 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: