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

Remove Select control dependency on OptionList

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.2.0
    • core
    • None

    Description

      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.

      Attachments

        Activity

          People

            sabob Bob Schellink
            sabob Bob Schellink
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment