[
https://jira.jboss.org/jira/browse/RF-3102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexander Smirnov resolved RF-3102.
-----------------------------------
Resolution: Done
This is working code of the my sample:
web.xml:
.................
<context-param>
<param-name>org.ajax4jsf.handleViewExpiredOnClient</param-name>
<param-value>true</param-value>
</context-param>
..................
Custom onError/onExpire handlers:
........................
<script type="text/javascript">
A4J.AJAX.onError = function(req,status,message){
window.alert("Custom onError handler "+message);
}
A4J.AJAX.onExpired = function(loc,expiredMsg){
if(window.confirm("Custom onExpired handler "+expiredMsg+" for a location:
"+loc)){
return loc;
} else {
return false;
}
}
</script>
......................................
It's important to use properly namespace for an onExpired function:
http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html_single/index.html#RequestErrorsAndSessionExpirationHandling
> add Session Expired handling support in JSF 1.2 env
> ---------------------------------------------------
>
> Key: RF-3102
> URL: https://jira.jboss.org/jira/browse/RF-3102
> Project: RichFaces
> Issue Type: Feature Request
> Affects Versions: 3.2.0
> Reporter: Ilya Shaikovsky
> Assignee: Alexander Smirnov
> Fix For: 3.2.2
>
>
> currently onExpired can't be used.
> Exception thrown after session expired.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues