JSF Phase Listener Redirect Form Not Iframe
I have this PhaseListener that checks whether the user is still logged in or not after restoring a view. If the session has expired, then I want the entire form to redirect to the
Solution 1:
If you do not want to have a page (e.g. the login page) shown in an iFrame, a javascript framekiller should solve this.
Add the following code into your login pages head
and try again:
<script type="text/javascript">
if(top != self) top.location.replace(location);
</script>
It easily reloads the current page as top page.
Hope it helps...
Post a Comment for "JSF Phase Listener Redirect Form Not Iframe"