JSF : Mapping URL to backing bean method
Hi Anybody,
I am facing a problem to map a URL to a JSF backing bean method.
The idea is before the page loads there is some pre - population data to be got from Database and populated in the backing bean.
Any ideas please?
I have one way to do this by using PhaseListener and in after phase get the reference to the managed bean. then using
FacesContext facesContext = argEvent.getFacesContext();
nh = facesContext.getApplication().getNavigationHandler();
nh.handleNavigation(facesContext, null, myBean.myBeanMethod
);
Here myBean.myBeanMethod() returns a string using which we can do further navigation.
Get me the ideal way to do this.

