You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by st...@apache.org on 2010/11/25 15:09:44 UTC

svn commit: r1039050 - /myfaces/extensions/cdi/trunk/jee-modules/jsf20-module/impl/src/main/resources/static/windowhandlerfilter.html

Author: struberg
Date: Thu Nov 25 14:09:43 2010
New Revision: 1039050

URL: http://svn.apache.org/viewvc?rev=1039050&view=rev
Log:
EXTCDI-79 improved windowhandler

Modified:
    myfaces/extensions/cdi/trunk/jee-modules/jsf20-module/impl/src/main/resources/static/windowhandlerfilter.html

Modified: myfaces/extensions/cdi/trunk/jee-modules/jsf20-module/impl/src/main/resources/static/windowhandlerfilter.html
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/jee-modules/jsf20-module/impl/src/main/resources/static/windowhandlerfilter.html?rev=1039050&r1=1039049&r2=1039050&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/jee-modules/jsf20-module/impl/src/main/resources/static/windowhandlerfilter.html (original)
+++ myfaces/extensions/cdi/trunk/jee-modules/jsf20-module/impl/src/main/resources/static/windowhandlerfilter.html Thu Nov 25 14:09:43 2010
@@ -21,6 +21,9 @@
 -->
 <html>
     <head>
+        <meta name="author" content="Mark Struberg">
+        <meta http-equiv="cache-control" content="no-cache">
+        <meta http-equiv="pragma" content="no-cache">
         <script type="text/javascript" >
             window.onload=function(){
                 var origUrl = window.location.href;
@@ -29,16 +32,17 @@
                     // this will be replaced in the servletfilter
                     windowId ='automatedEntryPoint';
                 }
+                window.name=windowId;
 
-                // 1 minute expiry time
+                // 3 seconds expiry time
                 var expdt = new Date();
-                expdt.setTime(expdt.getTime()+(1*60*1000));
+                expdt.setTime(expdt.getTime()+(3*1000));
                 var expires = "; expires="+expdt.toGMTString();
 
                 document.cookie = 'codiWindowId=' + windowId + expires;
 
                 // resubmit the page but now with the cookie
-                window.location.replace(url + ' '); // add space to force reload 
+                window.location.reload();
             }
         </script>
     </head>