Here I'm using Oracle ADF 12c. I'm using Filter for session expiration handling.
If session expired then redirecting to login page as following:
response.sendRedirect("/myapp/faces/login.jsp");
But if the request from browser is a PPR(Partial Page Rendering) request then the above specified redirect is not working.
To resolve this I have tried the solution specified in the following post.
Now redirect is working fine for PPR requests. But it is not working for regular request because of special partial response xml.
To differentiate the PPR requests and regular requests I've added the below check as specified in the above post.
if ("partial/ajax".equals(request.getHeader("Faces-Request"))) {
// It's a JSF ajax request.
}
But ADF PPR request is not sending the request header "Faces-Request". So all the requests including PPR requests are treating as regular requests.
How to differentiate ADF PPR request from regular request ?