Remove Select control dependency on OptionList
----------------------------------------------

                 Key: CLK-641
                 URL: https://issues.apache.org/jira/browse/CLK-641
             Project: Click
          Issue Type: Improvement
          Components: core
    Affects Versions: 2.1.0
            Reporter: Bob Schellink
             Fix For: 2.2.0


Currently Select requires its OptionList to be populated *before* the onProcess 
event. The Select methods bindRequestValue() and validate() depends on the 
OptionList.

It would be advantageous if the OptionList would be populated as late as 
possible, in case of redirects, forwards etc.

bindRequestValue() has no need for this dependency and can be easily removed.

validate() is trickier because it checks that the first OptionList value is not 
equal to the selected value. We can remove this restriction by exposing an API 
to explicitly set the value to validate against.

-- 
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