// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
package website.quiz;

import javax.faces.context.FacesContext;
import javax.faces.application.NavigationHandler;
import javax.faces.application.ViewHandler;
import javax.faces.component.UIViewRoot;

public class NavigationManager extends NavigationHandler {
	public void handleNavigation(FacesContext fc, String actionMethod, String actionName) {
        ViewHandler views = fc.getApplication().getViewHandler();
        UIViewRoot view = views.createView(fc, actionName);
        fc.setViewRoot(view);
	}
}
