ICEfaces
  1. ICEfaces
  2. ICE-8282

ice:selectOneMenu - valueChangeListener called when no value has changed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: EE-1.8.2.GA_P04
    • Fix Version/s: EE-1.8.2.GA_P05
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All
    • Assignee Priority:
      P1
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      Don't use an empty string, instead use any other sentinel value. A space works:

      <f:selectItem itemValue=" " itemLabel="-" />
      private String a = " ";
      Show
      Don't use an empty string, instead use any other sentinel value. A space works: <f:selectItem itemValue=" " itemLabel="-" /> private String a = " ";

      Description

      In a simple test case an ice:selectOneMenu is shown on the page. A command button is set to submit the form. If the page is loaded and button clicked without changing the value of the menu, the valueChangeListener is called.

      When the value change listener is called, the getNewValue() method returns null instead of an empty string which it is initialized to.

        Activity

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Salesforce Case [5007000000MHwcw]
        Arran Mccullough made changes -
        Attachment Case11350Example.zip [ 14609 ]
        Attachment Case11350Example.war [ 14610 ]
        Ken Fyten made changes -
        Fix Version/s EE-1.8.2.GA_P05 [ 10331 ]
        Assignee Priority P2
        Assignee Mircea Toma [ mircea.toma ]
        Ken Fyten made changes -
        Assignee Priority P2 P1
        Mark Collette made changes -
        Workaround Description Don't use an empty string, instead use any other sentinel value. A space works:

        <f:selectItem itemValue=" " itemLabel="-" />
        private String a = " ";
        Workaround Exists [Yes]
        Mark Collette made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Arran Mccullough
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: