Is there any way to get the
of a navigation case in the backing bean?
Let\'s say I want to get the
fr
You can get a NavigationCase
, from a ConfigurableNavigationHandler
. The NavigationCase
represents a configured navigation case and you can get all the info you need from this object. Observe:
ConfigurableNavigationHandler configNavHandler = (ConfigurableNavigationHandler)ctxt.getApplication().getNavigationHandler(); //assumes you already have an instance of FacesContext, named ctxt
NavigationCase navCase = configNavHandler.getNavigationCase(ctxt,null,"success");
String toViewId = navCase.getToViewId(ctx); // the <to-view-id>