This content has been marked as final.
Show 2 replies
-
1. Re: best way to redirect to in ajax request?
sunkaram Mar 13, 2012 12:36 PM (in response to fernandoaugusto)I redirect to home page on ajax errors as follows..
<script type="text/javascript">
//<![CDATA[
var onError = function onError() {
window.location = "#{fn:replace(request.requestURL, request.requestURI, '')}#{request.contextPath}/";
};
jsf.ajax.addOnError(onError);
//]]>
</script>
-
2. Re: best way to redirect to in ajax request?
healeyb Mar 20, 2012 6:07 AM (in response to fernandoaugusto)Hi, the title of this blog post looks promising, perhaps it's worth taking a closer look:
http://ovaraksin.blogspot.co.uk/2010/10/jsf-ajax-redirect-after-session-timeout.html
Regards,
Brendan.