How To Redirect Or Navigate To A Dissimilar Page Alongside Jsf

There are several ways of navigating from i page to around other inward JSF. There are two that I oftentimes use:

1.) Create a h:commandButton together with necktie it to an activeness that returns a string, which maps to a page: illustration supply "home.xhtml".

2.) Using navigation handler:
ConfigurableNavigationHandler navigationHandler = (ConfigurableNavigationHandler) FacesContext.getCurrentInstance().getExternalContext().getApplication().getNavigationHandler(); navigationHandler.performNavigation("home"); 
Next
Previous
Click here for Comments

0 komentar:

Please comment if there are any that need to be asked.