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

Returning a StreamPageContent instance from any of a Form's events results in "Form components may not be placed inside other Form components" exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.3, 5.4, 5.2
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      At the time the event is triggered, the FormSupport (and other stuff) is in the Environment. The new page render occurs INSIDE the same environment, causing errors when the new render of the Form tries to store its own FormSupport into the Environment.

      The solution is to use Environment.cloak() and decloak() around the new render.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: