no

How to manually redirect in JSF

There are times when we need to redirect manually in JSF. For example in page load we do some event and after that redirect to some page. Th...

There are times when we need to redirect manually in JSF. For example in page load we do some event and after that redirect to some page. This is how we would do it:

FacesContext ctx = FacesContext.getCurrentInstance();
ConfigurableNavigationHandler nav = (ConfigurableNavigationHandler)
ctx .getApplication().getNavigationHandler();

//navigation should be defined in faces-config.xml
nav.performNavigation("navigation");

Related

jsf 655763023448332273

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