Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1844

Listbox getSelectedItems returns _roSelItems instead of _selItems. Returning wrong selected items.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 6.5.2
    • Components

      Listbox getSelectedItems returns _roSelItems instead of _selItems. Every modification of selected items are done with _selItems. _roSelItems does not reflect the changes of _selItems. Tested condition was when checkmark = "true" and multiple = "true".

      /** A list of selected items. */
      private transient Set<Listitem> _selItems;
      /** A readonly copy of

      {@link #_selItems}

      . */
      private transient Set<Listitem> _roSelItems;

      under init()

      _selItems = new LinkedHashSet<Listitem>(4);
      _roSelItems = Collections.unmodifiableSet(_selItems);

      /**

      • Returns all selected items.
        *
      • <p>
      • Note: if live data is used ( {@link #getModel}

        is not null), the returned

      • item might NOT be loaded yet. To ensure it is loaded, you have to invoke
      • {@link #renderItem}

        .
        */
        public Set<Listitem> getSelectedItems()

        { return _roSelItems; }

            Unassigned Unassigned
            phdsong phdsong
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: