Hello,
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"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<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');
};
</script>
</head>
<body>
<f:view>
<a4j:status startText="in progress" stopText="done"/>
<br>
<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/>
</h:panelGrid>
</h:form>
</a4j:outputPanel>
</f:view>
</body>
</html>
<%/*
*/%>
I defined a session of 1 minute and my js call back function is never called upon session expiration.
What do I get wrong??
Julien.