Richard DiCroce created DELTASPIKE-623:
------------------------------------------
Summary: Returning a ViewConfig from an action method is broken
Key: DELTASPIKE-623
URL: https://issues.apache.org/jira/browse/DELTASPIKE-623
Project: DeltaSpike
Issue Type: Bug
Components: JSF-Module
Affects Versions: 1.0.0
Environment: WildFly 8.0.0.Final (Mojarra 2.2.5-jbossorg-3)
Reporter: Richard DiCroce
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:
{quote}
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'
{quote}
{code}
<h:commandButton value="Log out" action="#{loginBean.logout()}" />
public Class<FacesPages.Index> logout() {
user.logout();
msgs.addInfo().logoutSucceeded();
return FacesPages.Index.class;
}
{code}
I did some debugging and it looks like
NavigationHandlerAwareApplication.setNavigationHandler() is never called, so
DeltaSpike's NavigationHandler is never even instantiated.
--
This message was sent by Atlassian JIRA
(v6.2#6252)