Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5606

SelectOptions with #setRecreateChoices(true) loses selection on form errors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 7.0.0-M1, 6.15.0
    • 6.16.0, 7.0.0-M2
    • wicket-extensions
    • None

    Description

      Having SelectOptions#setRecreateChoices(true), on every render each choice is represented by a new SelectOption instance with a new UUID.
      If the form has submit errors, no UUID will match the RAW-Input of the Select. Thus the selection is lost.

      Attachments

        Activity

          People

            svenmeier Sven Meier
            svenmeier Sven Meier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: