Author: ilya_shaikovsky
Date: 2009-04-23 07:10:04 -0400 (Thu, 23 Apr 2009)
New Revision: 13790
Modified:
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/components.xml
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/web.xml
trunk/samples/richfaces-demo/src/main/webapp/templates/main.xhtml
Log:
https://jira.jboss.org/jira/browse/RF-6671
Modified: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/components.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/components.xml 2009-04-23
10:43:33 UTC (rev 13789)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/components.xml 2009-04-23
11:10:04 UTC (rev 13790)
@@ -18,7 +18,7 @@
http://jboss.com/products/seam/security
http://jboss.com/products/seam/security-2.0.xsd
http://jboss.com/products/seam/mail
http://jboss.com/products/seam/mail-2.0.xsd
http://jboss.com/products/seam/components
http://jboss.com/products/seam/components-2.0.xsd">
- <core:init debug="true"
transaction-management-enabled="false"/>
+ <core:init debug="false"
transaction-management-enabled="false"/>
<transaction:no-transaction/>
<core:manager concurrent-request-timeout="500"
conversation-timeout="120000"
Modified: trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/web.xml 2009-04-23 10:43:33 UTC
(rev 13789)
+++ trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/web.xml 2009-04-23 11:10:04 UTC
(rev 13790)
@@ -52,7 +52,10 @@
<param-name>org.richfaces.CONTROL_SKINNING</param-name>
<param-value>enable</param-value>
</context-param>
-
+ <context-param>
+ <param-name>org.ajax4jsf.handleViewExpiredOnClient</param-name>
+ <param-value>true</param-value>
+ </context-param>
<context-param>
<param-name>org.richfaces.LoadStyleStrategy</param-name>
<param-value>ALL</param-value>
Modified: trunk/samples/richfaces-demo/src/main/webapp/templates/main.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/templates/main.xhtml 2009-04-23 10:43:33
UTC (rev 13789)
+++ trunk/samples/richfaces-demo/src/main/webapp/templates/main.xhtml 2009-04-23 11:10:04
UTC (rev 13790)
@@ -14,6 +14,15 @@
<link rel="STYLESHEET" type="text/css"
href="${facesContext.externalContext.requestContextPath}/css/common.css"/>
<ui:include src="/templates/include/dynamic-css.xhtml" />
+<script>
+A4J.AJAX.onExpired = function(loc, expiredMsg){
+ if(window.confirm(expiredMsg)){
+ return loc;
+ } else {
+ return false;
+ }
+}
+</script>
</head>
<body>