Click
  1. Click
  2. CLK-641

Remove Select control dependency on OptionList

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.2.0
    • Component/s: core
    • Labels:
      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.

        Activity

        Hide
        Bob Schellink added a comment -

        fixed in trunk

        Show
        Bob Schellink added a comment - fixed in trunk

          People

          • Assignee:
            Bob Schellink
            Reporter:
            Bob Schellink
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development