Can someone help me to understand the following piece of code.
1. I noticed that JSF will call NavigationHandlerImpl(NavigationHandler
base) constructor instead of default NavigationHandlerImpl() why?
2. JSF also will send the instance of NavigationHandlerImpl as parameter
when it calls constructor NavigationHandlerImpl(NavigationHandler base),
why?
3.More intersted is this piece of code will handle navigation correctly
(just like default NavigationHandler) if I config it into my JSF
application, why?
Here is the code:
import javax.faces.application.NavigationHandler;
import javax.faces.context.FacesContext;
public class NavigationHandlerImpl extends NavigationHandler {
NavigationHandler _base;
public NavigationHandlerImpl(NavigationHandler base){
super();
_base = base;
}
public NavigationHandlerImpl(){
super();
}
@Override
public void handleNavigation(FacesContext fc, String actionMethod,
String
actionName) {
_base.handleNavigation(fc, actionMethod, actionName);
}
}
here is my configutation:
<application>
<navigation-handler>com.abc.web.nav.NavigationHandlerImpl</navigation-handler>
</application>
--
View this message in context:
http://www.nabble.com/NavigationHandler-tf4200242.html#a11946094
Sent from the MyFaces - Users mailing list archive at Nabble.com.