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

Select control has no initial value after populating through DataProvider

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0-M1, 2.2.0
    • 2.3.0-RC1
    • core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: