[ 
https://issues.apache.org/jira/browse/DELTASPIKE-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14018253#comment-14018253
 ] 

Richard DiCroce commented on DELTASPIKE-623:
--------------------------------------------

Hi Gerhard,
Based on your comment, I did some additional investigation. I have OmniFaces in 
my WAR, and it looks like their ApplicationFactory is "losing" DeltaSpike's 
ApplicationWrapper when it creates the OmniFaces ApplicationWrapper, which in 
turn means that DeltaSpike's setNavigationHandler is not called. I've opened an 
issue with OmniFaces here: https://github.com/omnifaces/omnifaces/issues/38

> 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
>            Assignee: Gerhard Petracek
>
> 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)

Reply via email to