In a JSF 2.0 application, I'm using facelets and trinidad component library. The problem is, with the trinidad modal dialog (which is basically an IFrame), if the session expires while the dialog is open, and the user clicks a button (starting an AJAX request), a login filter will redirect the user to the login page.
However, the login page opens inside the IFrame. How would I break out of the IFrame and redirect the main page instead?
Right now, since it was an AJAX request so a simple redirect to the right page won't do, so I'm sending the following:
<partial-response><redirect url=\"%s\"></redirect></partial-response>
Which will redirect, but inside the IFrame.