My application is no longer respecting the routes inserted in faces-config.xml, because?
Here's the exception:
Caused by: java.lang.NullPointerException
at com.sun.faces.application.NavigationHandlerImpl.determineViewFromActionOutcome(NavigationHandlerImpl.java:1384)
at com.sun.faces.application.NavigationHandlerImpl.findWildCardMatch(NavigationHandlerImpl.java:672)
at com.sun.faces.application.NavigationHandlerImpl.getViewId(NavigationHandlerImpl.java:483)
at com.sun.faces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:190)
at com.sun.faces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:183)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:132)
at javax.faces.component.UICommand.broadcast(UICommand.java:315)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1282)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
... 27 more
My faces-config.xml
<navigation-case>
<from-outcome>cadastroCargos</from-outcome>
<to-view-id>/CadastroCargos.xhtml</to-view-id>
<redirect include-view-params="true"/>
</navigation-case>