no

How to redirect or navigate to a different page with JSF

There are several ways of navigating from 1 page to another in JSF. There are 2 that I often use: 1.) Create a h:commandButton and tie it ...

There are several ways of navigating from 1 page to another in JSF. There are 2 that I often use:

1.) Create a h:commandButton and tie it to an action that returns a string, which maps to a page: example return "home.xhtml".

2.) Using navigation handler:
ConfigurableNavigationHandler navigationHandler = (ConfigurableNavigationHandler) FacesContext.getCurrentInstance().getExternalContext().getApplication().getNavigationHandler();
navigationHandler.performNavigation("home");

Related

java 1312317329269336971

Post a Comment

item