4 Replies Latest reply: Mar 7, 2012 11:46 AM by Navaneetha Krishnan Nataraj RSS

    Nice Page Expired Popup is not showing up

    huber
      Hello,

      I am using JDev 11.1.1.4 and created a new ADF Fusion Application.

      Then I adjusted the web.xml
      <?xml version = '1.0' encoding = 'UTF-8'?>
      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"
               xmlns="http://java.sun.com/xml/ns/javaee">
        <context-param>
          <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
          <param-value>server</param-value>
        </context-param>
        <context-param>
          <param-name>oracle.adf.view.rich.sessionHandling.WARNING_BEFORE_TIMEOUT</param-name>
          <param-value>120</param-value>
        </context-param>
        <context-param>
          <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
          <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
          <param-value>false</param-value>
        </context-param>
        <context-param>
          <description>Whether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information.</description>
          <param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>
          <param-value>false</param-value>
        </context-param>
        <filter>
          <filter-name>trinidad</filter-name>
          <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
        </filter>
        <filter>
          <filter-name>ServletADFFilter</filter-name>
          <filter-class>oracle.adf.share.http.ServletADFFilter</filter-class>
        </filter>
        <filter-mapping>
          <filter-name>trinidad</filter-name>
          <servlet-name>Faces Servlet</servlet-name>
          <dispatcher>FORWARD</dispatcher>
          <dispatcher>REQUEST</dispatcher>
        </filter-mapping>
        <filter-mapping>
          <filter-name>ServletADFFilter</filter-name>
          <servlet-name>Faces Servlet</servlet-name>
          <dispatcher>FORWARD</dispatcher>
          <dispatcher>REQUEST</dispatcher>
        </filter-mapping>
        <servlet>
          <servlet-name>Faces Servlet</servlet-name>
          <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
          <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet>
          <servlet-name>resources</servlet-name>
          <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
        </servlet>
        <servlet>
          <servlet-name>BIGRAPHSERVLET</servlet-name>
          <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.GraphServlet</servlet-class>
        </servlet>
        <servlet>
          <servlet-name>BIGAUGESERVLET</servlet-name>
          <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.gauge.GaugeServlet</servlet-class>
        </servlet>
        <servlet>
          <servlet-name>MapProxyServlet</servlet-name>
          <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.geoMap.servlet.MapProxyServlet</servlet-class>
        </servlet>
        <servlet>
          <servlet-name>GatewayServlet</servlet-name>
          <servlet-class>oracle.adfinternal.view.faces.bi.renderkit.graph.FlashBridgeServlet</servlet-class>
        </servlet>
        <servlet-mapping>
          <servlet-name>Faces Servlet</servlet-name>
          <url-pattern>/faces/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
          <servlet-name>resources</servlet-name>
          <url-pattern>/adf/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
          <servlet-name>resources</servlet-name>
          <url-pattern>/afr/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
          <servlet-name>BIGRAPHSERVLET</servlet-name>
          <url-pattern>/servlet/GraphServlet/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
          <servlet-name>BIGAUGESERVLET</servlet-name>
          <url-pattern>/servlet/GaugeServlet/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
          <servlet-name>MapProxyServlet</servlet-name>
          <url-pattern>/mapproxy/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
          <servlet-name>resources</servlet-name>
          <url-pattern>/bi/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
          <servlet-name>GatewayServlet</servlet-name>
          <url-pattern>/flashbridge/*</url-pattern>
        </servlet-mapping>
        <session-config>
          <session-timeout>3</session-timeout>
        </session-config>
        <mime-mapping>
          <extension>swf</extension>
          <mime-type>application/x-shockwave-flash</mime-type>
        </mime-mapping>
      </web-app>
      I changed this
      <context-param>
          <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
          <param-value>server</param-value>
        </context-param>
        <context-param>
          <param-name>oracle.adf.view.rich.sessionHandling.WARNING_BEFORE_TIMEOUT</param-name>
          <param-value>120</param-value>
        </context-param>
      ...
        <session-config>
          <session-timeout>3</session-timeout>
        </session-config>
      My problem is that the "Expiration Warning" and "Page expired" popups are not appearing. The session is timing out after 3 minutes.
      Here you can find the popups I am looking for http://codeplay.net/2011/05/20/adf-session-expire-warning-and-prevent-links-browser-context-menu-in-web-xml/

      Does anyone has an idea what with my web.xml might be wrong.
      Again, I didn't do any other changes to the application.

      Greetings
      Tobias