You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2010/10/13 21:06:35 UTC

svn commit: r1022242 - /tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js

Author: hlship
Date: Wed Oct 13 19:06:34 2010
New Revision: 1022242

URL: http://svn.apache.org/viewvc?rev=1022242&view=rev
Log:
TAP5-1303: Ensure that a Tapestry.FormEventManager exists when linking a client-side form to a zone

Modified:
    tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js

Modified: tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js?rev=1022242&r1=1022241&r2=1022242&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js (original)
+++ tapestry/tapestry5/trunk/tapestry-core/src/main/resources/org/apache/tapestry5/tapestry.js Wed Oct 13 19:06:34 2010
@@ -1022,6 +1022,8 @@ Tapestry.Initializer = {
 
 		if (element.tagName == "FORM") {
 
+			// Create the FEM if necessary.
+			element.getFormEventManager();
 			element.addClassName(Tapestry.PREVENT_SUBMISSION);
 			
 			/*