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

Form component should be more careful with the validation tracker to ensure that a session is not created unless needed

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.2.0
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Currently, the Form component will create a ValidationTracker instance if one does not already exist when rendering or when handling a form submission. Since, typically, it is using the defaultValidator property, this creates a session to store the ValidationTracker.

      A little more work can yield a ValidationTracker that doesn't uπdate the Form.validator property until an error is recorded. If no errors are recorded for the Form during a submission, then the ValidationTracker is discarded anyway ... this change will just ensure that no session is created unless the tracker is being kept around (for a re-render of the page, to present errors to the user).

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: