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

jsf 1312317329269336971

Post a Comment Default Comments

Outsourcing

Are you looking for freelancers in the Philippines? Get in touch.

Donations

If you like what I do, you can support this channel by buying me a coffee. I would be grateful for your contribution! Your donations will help me create more FREE online courses and learning materials for programmers and remote workers.

item