ICEfaces
  1. ICEfaces
  2. ICE-10236

ace:listControl in ui:repeat failures

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.3.0.GA_P02, 4.0
    • Fix Version/s: EE-4.0.0.GA, EE-3.3.0.GA_P03, 4.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces4 trunk rev. 42540
      Browsers: all
      Server: Tomcat7.0.42
    • Assignee Priority:
      P2

      Description

      QA test app: http://dev.icesoft.com/svn/repo/qa/trunk/Regression-Icefaces4/Sparkle/Manual/listControl
      Test page: /listControlRepeat.jsf

      1) Every second selection, drag or move of a list item within the same list or between the two lists from the listControl within iu:repeat fails to be persisted.

      2) When moving items between the lists using the listControl buttons, the item to be moved fails to be rendered in the destination list until the Submit button is pressed.
      When the Submit button is pressed, the change is persisted only every second trial, see 1) above.
      Occasionally a server error is seen when submitting the form after moving items via the control buttons:

      Sep 10, 2014 2:09:30 PM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError
      SEVERE: org.icefaces.ace.json.JSONException: JSONArray[0] is not a number.
             at org.icefaces.ace.json.JSONArray.getDouble(JSONArray.java:308)
             at org.icefaces.ace.json.JSONArray.getInt(JSONArray.java:325)
             at org.icefaces.ace.component.list.ListDecoder.processSelections(ListDecoder.java:49)
             at org.icefaces.ace.component.list.ListRenderer.decode(ListRenderer.java:74)
             at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:831)
             at org.icefaces.impl.component.UISeriesBase.processDecodes(UISeriesBase.java:523)
             at com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback.visit(PartialViewContextImpl.java:573)
             at com.sun.faces.component.visit.PartialVisitContext.invokeVisitCallback(PartialVisitContext.java:183)
             at org.icefaces.impl.component.UISeriesBase.visitTree(UISeriesBase.java:1041)
             at javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)
             at com.sun.faces.facelets.component.UIRepeat.visitChildren(UIRepeat.java:856)
             at com.sun.faces.facelets.component.UIRepeat.visitTree(UIRepeat.java:759)
             at javax.faces.component.UIComponent.visitTree(UIComponent.java:1700)
      ............

      Steps:
      1) - select an item (i1) from either List1 or List2 from any listControl component -> item (i1) selected.
      - press "Submit Selection" button -> list item (i1) remains selected, and List1 and List2 output text is updated on page accordingly (Pass).
      - select another item (i2) from either List1 or List2 from the same listControl component -> item (i2) selected.
      - press "Submit Selection" button -> item (i2) becomes unselected, and selection moves to the previously selected item (i1); List1 and List2 output text remains unchanged (Fail).
      Any second selection works, and the same issue is seen if trying to move items using the listControl buttons, or drag the items within the list.

      2) - select an item from any list/any listControl and press "->" or "<-" to move it to the nearby list -> item disappears from the original list, however it fails to render in the destination list.
      - press "Submit Selection" button -> item is rendered in the destination list.
      Repeating these steps will be successful only every second trial.

        Activity

        Carmen Cristurean created issue -
        Carmen Cristurean made changes -
        Field Original Value New Value
        Fix Version/s 4.0 [ 11382 ]
        Carmen Cristurean made changes -
        Affects Version/s EE-3.3.0.GA_P02 [ 11371 ]
        Ken Fyten made changes -
        Fix Version/s EE-4.0.0.GA [ 11171 ]
        Fix Version/s EE-3.3.0.GA_P03 [ 11572 ]
        Fix Version/s 4.0 [ 11382 ]
        Hide
        Carmen Cristurean added a comment -

        Still reproducible with IF 4.0 release code (r. 43353).

        Show
        Carmen Cristurean added a comment - Still reproducible with IF 4.0 release code (r. 43353).
        Ken Fyten made changes -
        Assignee Mircea Toma [ mircea.toma ]
        Assignee Priority P2 [ 10011 ]
        Hide
        Mircea Toma added a comment -

        Fixed demo by removing the 'id' bindings for the lists defined in listControlRepeat.xhtml. This avoids having the IDs change during each lifecycle.

        Show
        Mircea Toma added a comment - Fixed demo by removing the 'id' bindings for the lists defined in listControlRepeat.xhtml . This avoids having the IDs change during each lifecycle.
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Carmen Cristurean added a comment - - edited

        Verified with IF4 trunk r.43926/ EE-3.3.0-maintenance branch r. 43926 in FF34, Chrome39, IE11.

        Show
        Carmen Cristurean added a comment - - edited Verified with IF4 trunk r.43926/ EE-3.3.0-maintenance branch r. 43926 in FF34, Chrome39, IE11.
        Ken Fyten made changes -
        Security Private [ 10001 ]
        Ken Fyten made changes -
        Fix Version/s 4.1 [ 11375 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Carmen Cristurean
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: