Because JSF is not respecting the paths entered faces-config.xml

Asked

Viewed 232 times

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>

1 answer

1


Good morning, Great take a look at your mvc setup, he may be looking for the wrong prefix and Sufix, or in wrong places.

  • Everything is as it was before. I haven’t changed at all.....

  • 1

    You have set the location where it will search the views

  • 1

    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

  • The worst that’s all right. I’m using the property outcome, because I can’t stop. Thanks.

  • 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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.