Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2189

Upload component does not override the isRequired method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.3.7
    • 5.4
    • tapestry-upload
    • None

    Description

      There is a bug when an upload field is required. The client-side validation works well, but I have some bad effect on the server side.
      The Upload component extends the AbstractField class, that implements the isRequired method (and returning always false). So if my field is required, when I create a ValidationDecorator, the field.isRequired return always false !
      For other inputs, everything is OK, because they are extending the AbstractTextField class that override again the isRequired method (but with the expected behavior)

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            gillespie59 Emmanuel DEMEY
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: