Wicket
  1. Wicket
  2. WICKET-3698

FileUploadField no longer updates model in wicket 1.5

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5-RC4
    • Fix Version/s: 1.5-RC5
    • Component/s: wicket
    • Labels:
      None

      Description

      If you pass a model to the FileUploadField constructor, it is no longer updated when the form is submitted, this worked in wicket 1.4.
      See attached diff for a test case

        Activity

        Hide
        Martin Grigorov added a comment -

        With r1101597 FileUploadField accepts ListModel and the feature is re-introduced.

        Show
        Martin Grigorov added a comment - With r1101597 FileUploadField accepts ListModel and the feature is re-introduced.
        Hide
        selckin added a comment -

        correct test

        Show
        selckin added a comment - correct test
        Hide
        selckin added a comment -

        Actually bad test, because it's allowed be to nulled out again after the onSubmit(), i'll make a new one

        Show
        selckin added a comment - Actually bad test, because it's allowed be to nulled out again after the onSubmit(), i'll make a new one
        Hide
        selckin added a comment -

        test case update

        Show
        selckin added a comment - test case update

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            selckin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development