ICEfaces
  1. ICEfaces
  2. ICE-1050

ice:selectOneMenu Focus Lost When Initialized to Empty String

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.2
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Operating System: Windows XP
      Platform: PC

      Description

      The Wells Fargo demo application located at repo\applications\wells-fargo has
      an ice:selectOneMenu component bound to a list of U.S. States. When the first
      SelectItem value is initialized to "" and you attempt to tab into the
      component, the focus is lost until you hit tab a second time. If the initial
      value is a non-empty String, the tab focus behaves as expected.

      If you wish to test with the application, replace the first line of the
      CriteriaBean constructor with the following two lines, to have the first value
      initialized to an empty String:

              usStateList = new ArrayList(LocationLists.getNUMBER_USSTATES()+1);
              usStateList.add(0,new SelectItem(""));

        Activity

        Hide
        Greg McCleary added a comment -

        This is numero 3 on my priority list ... just let me know if this should be
        moved to a higher priority.

        Show
        Greg McCleary added a comment - This is numero 3 on my priority list ... just let me know if this should be moved to a higher priority.
        Hide
        Greg McCleary added a comment -

        fixed in 1.5 branch [rev 12636]
        fixed in HEAD [rev 12635]

        The validate method has been overridden in the extended HtmlSelectOneMenu
        component class. A valueChange event will not be fired when empty Strings are
        converted to null.

        Show
        Greg McCleary added a comment - fixed in 1.5 branch [rev 12636] fixed in HEAD [rev 12635] The validate method has been overridden in the extended HtmlSelectOneMenu component class. A valueChange event will not be fired when empty Strings are converted to null.
        Hide
        Brad Kroeger added a comment -

        I have verified that the focus is now behaving as expected.

        Show
        Brad Kroeger added a comment - I have verified that the focus is now behaving as expected.
        Hide
        Greg McCleary added a comment -

        Verified/tested against Icefaces 1.5.2

        Show
        Greg McCleary added a comment - Verified/tested against Icefaces 1.5.2

          People

          • Assignee:
            Greg McCleary
            Reporter:
            Brad Kroeger
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: