2 Replies Latest reply on Apr 4, 2007 7:42 AM by Julien Martin

    onExpired call back never being called...

    Julien Martin Expert

      I have the following jsf/html page:

      <%@page contentType="text/html"%>
      <%@page pageEncoding="UTF-8"%>
      <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
      <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
      <%@taglib prefix="a4j" uri="https://ajax4jsf.dev.java.net/ajax"%>
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
       <title>JSP Page</title>
       <script type="text/javascript">
       A4J.AJAX.onExpired = function(loc,expiredMsg){
       alert('custom expired');
       <a4j:status startText="in progress" stopText="done"/>
       <a4j:outputPanel id="monpanel">
       <h:outputText value="Hello #{MyBean.name}."/>
       <h:outputText value=" You are #{MyBean.age} yrs."/>
       <h:form id="myform">
       <h:panelGrid columns="2">
       <h:outputText value="Fill in your name"/><h:inputText value="#{MyBean.name}"/>
       <h:outputText value="Fill in your age"/><h:inputText value="#{MyBean.age}"/>
       <a4j:commandButton value="Go!" reRender="monpanel" /><h:panelGroup/>

      I defined a session of 1 minute and my js call back function is never called upon session expiration.

      What do I get wrong??