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

FileUploadField should return FileUpload as its converted input

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4-M2
    • 1.4-M3
    • wicket
    • None

    Description

      FileUploadField should return FileUpload as its converted input so the file can be validated.

      Eg,
      @Override
      protected void convertInput() {
      setConvertedInput(getFileUpload());
      }

      Apparently MultiFileUploadField handles this (I've checked, it appears to be in the convertValue method).

      For more context see http://www.nabble.com/Best-way-of-validating-FileUploadField-td17662018.html

      Attachments

        Activity

          People

            thrantal Timo Heikki Rantalaiho
            ned.collyer Ned Collyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: