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

        There are no subversion log entries for this issue yet.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: