Я хотел бы заблокировать доступ к какой-либо странице, даже если пользователь знает URL-адрес некоторых страниц.
Например, /localhost:8080/user/home.xhtml
(нужно сначала выполнить вход), если не зарегистрирован, а затем перенаправить на /index.xhtml
.
Как это делается в JSF? Я читал в Google, что нужен фильтр, но я не знаю, как это сделать.