JavaServer Faces (JSF) has the HttpServletResponse built-in, so you cannot directly use redirect functions like sendRedirect within a JSF Bean. I spent a lot of time researching and found that there are quite a few misleading articles on this topic. To save others with the same requirement from wasting time, I'm recording here the method that has been tested and works: