How to implement a "forced dialog" for every JSF session, even for deep link accesses?

I have a web site where users get authenticated using CAS by a ServletFilter. On their first hit, no matter if they come via index/welcome page or deep link, I'd like to present them a dialog that forces them to select one of their products before continuing to the page they originally wanted to.

Is there a better approach that redirecting them inside a Servlet Filter? It seems a bit too low level but I have to catch them even if they come using a deep link.

My idea was using a Faces Flow in the hope that it would make this rerouting a bit more readable but so far I found no way to start a Faces Flow without using a CommandButton like in the examples.

I have free choice of the JSF version I use and can use PrimeFaces if they offer something suitable.

0 ответов

Другие вопросы по тегам