1
My application is no longer respecting the routes inserted in faces-config.xml, because?
Follow 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>
Everything is as it was before. I haven’t changed at all.....
– Marcelo Gomes
You have set the location where it will search the views
– Ronaldo Filho
There is also the issue that you have configured the bean that will control these requests, you also have to remember that the navigation case has to be inside a navigation
– Ronaldo Filho
The worst that’s all right. I’m using the property
outcome
, because I can’t stop. Thanks.– Marcelo Gomes
Great your controller for this view checks if the methods or annotations are correct, the error can be there too, anything if you can make the rest of the code available gets better to understand more about how the error is being generated
– Ronaldo Filho