Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-14256

pickList doesn't fire onremoveitems when keepSourceOrder is true

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.5.15
    • Fix Version/s: 4.5.16
    • Component/s: None
    • Labels:
    • Steps to Reproduce:
      Hide

      Modify the components-demo from https://github.com/richfaces/richfaces/blob/master/examples/components-demo/src/main/webapp/examples/input/pickList.xhtml like this:

      — a/examples/components-demo/src/main/webapp/examples/input/pickList.xhtml
      +++ b/examples/components-demo/src/main/webapp/examples/input/pickList.xhtml
      @@ -113,6 +113,7 @@
      <h:form>
      <rich:pickList id="pickList3" value="#

      {inputBean.values}

      " sourceCaption="Source Items"
      targetCaption="target Items"
      + keepSourceOrder="true"
      onadditems="alert('Item Added.')"
      onremoveitems="alert('Item Removed.')">
      <f:selectItem itemLabel="Label#1" itemValue="Value#1"/>

      Now the remove-buttons don't show a alert-box, while the add-buttons still do.

      Show
      Modify the components-demo from https://github.com/richfaces/richfaces/blob/master/examples/components-demo/src/main/webapp/examples/input/pickList.xhtml like this: — a/examples/components-demo/src/main/webapp/examples/input/pickList.xhtml +++ b/examples/components-demo/src/main/webapp/examples/input/pickList.xhtml @@ -113,6 +113,7 @@ <h:form> <rich:pickList id="pickList3" value="# {inputBean.values} " sourceCaption="Source Items" targetCaption="target Items" + keepSourceOrder="true" onadditems="alert('Item Added.')" onremoveitems="alert('Item Removed.')"> <f:selectItem itemLabel="Label#1" itemValue="Value#1"/> Now the remove-buttons don't show a alert-box, while the add-buttons still do.

      Description

      If the keepSourceOrder attribute for the <rich:pickList> component is set, the onremoveitems() event is not raised (or at least the JavaScript event listener is not called).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michpetrov Michal Petrov
                Reporter:
                matinh Martin Höller
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: