Uploaded image for project: 'Click'
  1. Click
  2. CLK-745

Select control has no initial value after populating through DataProvider

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0-M1, 2.2.0
    • Fix Version/s: 2.3.0-RC1
    • Component/s: core
    • Labels:
      None

      Description

      The method setInitialValue() is called from a number of places, particularly from the various add..() methods.

      This makes sure that after populating, we have a default selected value.

      However, when populating through a DataProvider, and when the DataProvider returns an instance of List, the List is set as the option list through setOptionList(List), which does NOT call the setInitialValue() method.

      This solves the issue :

      public void setOptionList(List options)

      { optionList = options; setInitialValue(); }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              accumulator Sander van Grieken
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: