Select control has no initial value after populating through DataProvider
-------------------------------------------------------------------------

                 Key: CLK-745
                 URL: https://issues.apache.org/jira/browse/CLK-745
             Project: Click
          Issue Type: Bug
          Components: core
    Affects Versions: 2.3.0-M1, 2.2.0
            Reporter: Sander van Grieken


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();
    }


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to