You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (Created) (JIRA)" <ji...@apache.org> on 2011/11/04 23:05:51 UTC

[jira] [Created] (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

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

                 Key: TAP5-1744
                 URL: https://issues.apache.org/jira/browse/TAP5-1744
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-core
    Affects Versions: 5.3, 5.4, 5.2
            Reporter: Howard M. Lewis Ship


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira