Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2784

Tapestry should not persist error messages during XHR requests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Core Components
    • None

    Description

      Tapestry persists the error messages that result from form validation to support the post redirect get paradigm, which is correct and expected behavior. However, this is not the correct nor most efficient way to handle things during AJAX requests, as the response is rendered out during the same request.

      This was discussed with Thiago on the mailing list:
      http://tapestry.1045711.n5.nabble.com/T5-3-rc-3-Error-messages-and-AJAX-td4974222.html

      I dont see any side effects of this, but the least that must be done is to prevent the persistence when the errors are red during the same request. Now the errors are present on subsequent request too (shown twice).

      Attachments

        Activity

          People

            Unassigned Unassigned
            9902468 Ville Virtanen
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: