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

5.2.4 Form's getDefaultTracker() incompatible with 5.1.0.5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 5.2.4
    • None
    • None

    Description

      In Tapestry 5.1.0.5, you can have code such as:

      @Component
      private Form inputs;
      ...
      if (inputs.getDefaultTracker().getHasErrors())
      ...

      This fails in 5.2.4 because getDefaultTracker() returns null if there are no errors. This appears to be related to this closed bug:

      https://issues.apache.org/jira/browse/TAP5-979

      Perhaps getDefaultTracker() should check for a null and return an empty one to be backwards compatible with 5.1.0.5? Alternatively, document it as a known incompatibility in the release notes.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            blacknext Michael Gentry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: