-
1. Session timeout, click a4j button, a blank page
ilya40umov Jan 21, 2011 12:54 AM (in response to fengxiaofeng)I don't know what's wrong with your code. It works well for me. But to understand your problem better RF team should know your browser/jsf impl/RF version and a sample of your code if it's possible.
Thanks,
Ilya.
-
2. Session timeout, click a4j button, a blank page
fengxiaofeng Jan 21, 2011 1:13 AM (in response to ilya40umov)Thank you for your reply, llya.
My browser is IE7
jsf-facelets-1.1.15 richfaces-api-3.3.3.Final richfaces-impl-3.3.3.Final
Thanks,
feng
-
3. Session timeout, click a4j button, a blank page
fengxiaofeng Jan 21, 2011 1:25 AM (in response to ilya40umov)<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"><description>BIMP</description>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>
/pages/bimp/scheduler/bimp-scheduler-components.xml,
/pages/bimp/scheduler/bimp-scheduler-navigator.xml,
/pages/bimp/admin/bimp-admin-components.xml,
/pages/bimp/admin/bimp-admin-navigator.xml,
/pages/bimp/channel/bimp-channel-components.xml,
/pages/bimp/channel/bimp-channel-navigator.xml,
/pages/bimp/security/bimp-security-components.xml,
/pages/bimp/security/bimp-security-navigator.xml,
/pages/icm/configmgt/icm-configmgt-components.xml,
/pages/icm/configmgt/icm-configmgt-navigator.xml,
/pages/icm/datagroupmgt/icm-datagroupmgt-components.xml,
/pages/icm/datagroupmgt/icm-datagroupmgt-navigator.xml,
/pages/icm/campplan/icm-campplan-components.xml,
/pages/icm/campplan/icm-campplan-navigator.xml,
/pages/icm/campapproval/icm-campaproval-components.xml,
/pages/icm/campapproval/icm-campaproval-navigator.xml
</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.PARTIAL_STATE_SAVING_METHOD</param-name>
<param-value>false</param-value>
</context-param><context-param>
<param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
<param-value>false</param-value>
</context-param><context-param>
<param-name>preSubmit</param-name>
<param-value>false</param-value>
</context-param><context-param>
<param-name>org.apache.myfaces.PRETTY_HTML</param-name>
<param-value>true</param-value>
</context-param><context-param>
<param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
<param-value>true</param-value>
</context-param><context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param><context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>#{bimp_infrastructure_skinBB.skin}</param-value>
</context-param><context-param>
<param-name>org.richfaces.CONTROL_SKINNING</param-name>
<param-value>enable</param-value>
</context-param><context-param>
<param-name>facelets.LIBRARIES</param-name>
<param-value>/WEB-INF/tags/cdev.taglib.xml;/WEB-INF/tags/springsecurity.taglib.xml</param-value>
</context-param><context-param>
<param-name>webAppRootKey</param-name>
<param-value>bimp.root</param-value>
</context-param><context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/log4j.properties</param-value>
</context-param><context-param>
<param-name>bimp.javax.faces.CONFIG_FILES</param-name>
<param-value>/pages/bimp/**/*-components.xml,/pages/bimp/**/*-navigator.xml,/pages/icm/**/*-components.xml,/pages/icm/**/*-navigator.xml</param-value>
</context-param><context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
classpath*:/META-INF/conf/spring/*.xml,
/WEB-INF/applicationContext-web.xml
</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.SKIN</param-name>
<param-value>#{bimp_infrastructure_skinBB.skin}</param-value>
</context-param>
<context-param>
<param-name>org.apache.myfaces.ERROR_HANDLING</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.handleViewExpiredOnClient</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>facelets.BUILD_BEFORE_RESTORE</param-name>
<param-value>true</param-value>
</context-param>
<filter>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
<init-param>
<param-name>createTempFiles</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>maxRequestSize</param-name>
<param-value>1000000</param-value>
</init-param>
</filter><filter>
<filter-name>characterEncodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter><filter>
<filter-name>requestContextFilter</filter-name>
<filter-class>org.springframework.web.filter.RequestContextFilter</filter-class>
</filter>
<filter>
<filter-name>hibernateFilter</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
<init-param>
<param-name>sessionFactoryBeanName</param-name>
<param-value>bimp_infrastructure_sessionFactory</param-value>
</init-param>
</filter><filter>
<filter-name>bimp_security_springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter><filter>
<filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
<init-param>
<description>Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB</description>
<param-name>uploadMaxFileSize</param-name>
<param-value>100m</param-value>
</init-param>
<init-param>
<description>Set the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB</description>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</init-param>
</filter><filter-mapping>
<filter-name>ajax4jsf</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping><filter-mapping>
<filter-name>ajax4jsf</filter-name>
<servlet-name>Page Flow Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping><filter-mapping>
<filter-name>extensionsFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping><filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>characterEncodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping><filter-mapping>
<filter-name>requestContextFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping><filter-mapping>
<filter-name>hibernateFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping><filter-mapping>
<filter-name>bimp_security_springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping><listener>
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener><listener>
<listener-class>com.longtop.bi.bimp.infrastructure.startup.ContextInit</listener-class>
</listener><listener>
<listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class>
</listener><listener>
<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
</listener><servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>org.apache.myfaces.webapp.MyFacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet><servlet>
<servlet-name>delegatingServletProxy</servlet-name>
<servlet-class>com.longtop.bi.bimp.infrastructure.web.DelegatingServletProxy</servlet-class>
<load-on-startup>200</load-on-startup>
</servlet>
<servlet>
<servlet-name>Page Flow Servlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext-webflow.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Page Flow Servlet</servlet-name>
<url-pattern>/pageflow/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>delegatingServletProxy</servlet-name>
<url-pattern>/servletproxy/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>1</session-timeout>
</session-config><mime-mapping>
<extension>xls</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping><welcome-file-list>
<welcome-file>selectApp.jsp</welcome-file>
</welcome-file-list>
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/uncaughtException.jsp</location>
</error-page><error-page>
<exception-type>java.lang.Exception</exception-type>
<location>/uncaughtException.jsp</location>
</error-page>
<error-page>
<error-code>403</error-code>
<location>/uncaughtException.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/uncaughtException.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/uncaughtException.jsp</location>
</error-page></web-app>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:cdev="http://www.longtop.com/bi/cdev">
<ui:composition template="../../../public/template4.xhtml">
<ui:define name="body">
<a4j:keepAlive beanName="bimp_common_codeValueBB" />
<h:inputHidden value="#{bimp_common_codeValueBB.a}" />
<a4j:form id="query_form">
<a4j:commandLink onclick="if(!confirm('del?')) return false;"
reRender="query_form,errorMsg" ignoreDupResponses="false"
ajaxSingle="true" data="#{row}"
actionListener="#{bimp_common_codeValueBB.deleteCodeValue}">
<h:graphicImage alt="del"
url="/pages/bimp/images/crud/ico-delete.gif" style="border:0px;" />
<h:outputText value="del"
style="word-break: break-all;cursor:hand;" />
</a4j:commandLink>
</a4j:form>
<script type="text/javascript">
//<![CDATA[
A4J.AJAX.onError = function(req,status,message) {
alert('error');
};
A4J.AJAX.onExpired = function(loc, expiredMsg){
alert();
}
//]]>
</script>
</ui:define>
</ui:composition>
</html> -
4. Session timeout, click a4j button, a blank page
dhds May 24, 2011 2:56 AM (in response to fengxiaofeng)I have the same problem with RF 3.3.3 and JSF 1.2! Have you solved the problem?
-
5. Re: Session timeout, click a4j button, a blank page
motherdowd Sep 22, 2011 12:05 AM (in response to fengxiaofeng)I get the same problem in ie7, but it works ok in firefox 3.6.20