I need to figure out what the current page is I’m on using a bean.
Something like getting the current form id from facesContext and compare it to a const string.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use
facesContext.getViewRoot().getViewId().Be aware that this is the current JSF view that’s being processed. If you use forwarding techniques via a Servlet or do navigation without a redirect, this is not necessarily the same as what the user’s address bar is showing.