Author: lfryc(a)redhat.com
Date: 2011-02-23 20:34:24 -0500 (Wed, 23 Feb 2011)
New Revision: 21906
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/resources/script/common.js
Log:
enabled updating javax.faces.ViewState across all forms for MyFaces (Mojarra compatibility
RFPL-1187)
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/resources/script/common.js
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/resources/script/common.js 2011-02-24
01:33:56 UTC (rev 21905)
+++
modules/tests/metamer/trunk/application/src/main/webapp/resources/script/common.js 2011-02-24
01:34:24 UTC (rev 21906)
@@ -1,4 +1,14 @@
/**
+ * MyFaces configuration
+ */
+window.myfaces = window.myfaces || {};
+myfaces.config = myfaces.config || {};
+/**
+ * enables updating javax.faces.ViewState across all forms (Mojarra compatibility -
https://issues.jboss.org/browse/RFPL-1187)
+ */
+myfaces.config.no_portlet_env = true;
+
+/**
* Variable used in Selenium tests for testing JavaScript events. Each event adds its
name to this
* variable. E.g. if onbegin, onbeforedomupdate and oncomplete is set, successful result
will be
* "begin beforedomupdate complete ".