ICEfaces
  1. ICEfaces
  2. ICE-10421

ace:autoCompleteEntry - valueChangeListener not called for first drop down item

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: EE-4.0.0.GA, 4.1
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      All

      Description

      The valueChangeListener method for the ace:autoCompleteEntry component is not called in a consistent manner. When displaying values and making a selection, if the first option is selected (via the keyboard or mouse), the change event is not called. An update is sent to the server with the valueChange event but the method is not called. Making a selection of other values calls the method correctly

        Activity

        Hide
        Arran Mccullough added a comment -

        Attached test case that shows the issue.

        Steps:

        • Load welcomeICEfaces.jsf
        • In the input field enter in '1', a few options are shown. Selecting the first one, there won't be a log in the server logs indicating the VCL is called. If you select the other values, the VCL is called.
        Show
        Arran Mccullough added a comment - Attached test case that shows the issue. Steps: Load welcomeICEfaces.jsf In the input field enter in '1', a few options are shown. Selecting the first one, there won't be a log in the server logs indicating the VCL is called. If you select the other values, the VCL is called.
        Hide
        Arturo Zambrano added a comment -

        Committed fix to 4.0 trunk at revision 43881. The issue didn't have to do with the first item in the list, but with any item that was selected whose value was exactly the same as the value typed in the text field; in the test app this value was '1'. After the fix for ICE-10192, which consisted in setting the submitted value at every request (even if it wasn't a definite submit), the use case where the typed value is exactly the same as the selected value wasn't firing a value change listener. Some logic was added to cover this case and fire a value change listener when this occurs.

        Show
        Arturo Zambrano added a comment - Committed fix to 4.0 trunk at revision 43881. The issue didn't have to do with the first item in the list, but with any item that was selected whose value was exactly the same as the value typed in the text field; in the test app this value was '1'. After the fix for ICE-10192, which consisted in setting the submitted value at every request (even if it wasn't a definite submit), the use case where the typed value is exactly the same as the selected value wasn't firing a value change listener. Some logic was added to cover this case and fire a value change listener when this occurs.
        Hide
        Liana Munroe added a comment -

        Verified ICEfaces 4 trunk r43890. Tomcat 7, IE 11, FF 34, Chrome 39.

        Show
        Liana Munroe added a comment - Verified ICEfaces 4 trunk r43890. Tomcat 7, IE 11, FF 34, Chrome 39.

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: