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

        selckin created issue -
        Hide
        selckin added a comment -

        test case update

        Show
        selckin added a comment - test case update
        selckin made changes -
        Field Original Value New Value
        Attachment fileuploadfield-test.patch [ 12478707 ]
        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 -

        correct test

        Show
        selckin added a comment - correct test
        selckin made changes -
        Attachment fileupload-test-2.patch [ 12478708 ]
        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.
        Martin Grigorov made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Martin Grigorov [ mgrigorov ]
        Fix Version/s 1.5-RC5 [ 12316423 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        2h 44m 1 Martin Grigorov 10/May/11 19:00

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development