Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-623

Returning a ViewConfig from an action method is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.0.0
    • None
    • JSF-Module
    • None
    • WildFly 8.0.0.Final (Mojarra 2.2.5-jbossorg-3)

    Description

      I updated from DS 0.7 to 1.0.0-SNAPSHOT to fix DELTASPIKE-590 and now returning a ViewConfig from an action method is broken:

      Unable to find matching navigation case with from-view-id '/faces/index.xhtml' for action '#{loginBean.logout()}' with outcome 'class com.lapis.jsf.framework.testwar.application.FacesPages$Index'

      <h:commandButton value="Log out" action="#{loginBean.logout()}" />
      
      public Class<FacesPages.Index> logout() {
      	user.logout();
      	msgs.addInfo().logoutSucceeded();
      	return FacesPages.Index.class;
      }
      

      I did some debugging and it looks like NavigationHandlerAwareApplication.setNavigationHandler() is never called, so DeltaSpike's NavigationHandler is never even instantiated.

      Attachments

        Activity

          People

            gpetracek Gerhard Petracek
            rcd Richard DiCroce
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: