You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Bob Schellink (JIRA)" <ji...@apache.org> on 2010/12/29 23:05:56 UTC

[jira] Closed: (CLK-745) Select control has no initial value after populating through DataProvider

     [ https://issues.apache.org/jira/browse/CLK-745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bob Schellink closed CLK-745.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.0-RC1

fix checked in

> 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
>             Fix For: 2.3.0-RC1
>
>
> 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.