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

Upload component does not override the isRequired method

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.3.7
    • Fix Version/s: 5.4
    • Component/s: tapestry-upload
    • Labels:
      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

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              gillespie59 Emmanuel DEMEY
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: