You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Dominik Appl (JIRA)" <de...@myfaces.apache.org> on 2014/08/18 19:00:23 UTC

[jira] [Created] (MYFACES-3916) Wrong navigation handling for clause on null outcome

Dominik Appl created MYFACES-3916:
-------------------------------------

             Summary: Wrong navigation handling for <if> clause on null outcome
                 Key: MYFACES-3916
                 URL: https://issues.apache.org/jira/browse/MYFACES-3916
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-344
    Affects Versions: 2.2.4
            Reporter: Dominik Appl
            Priority: Minor


Outcome is null, but the following navigation case matches (even though "from-outcome" is present).

<navigation-case>
      <from-outcome>go_mainMenu</from-outcome>
      <if>#{!mainLayoutBean.isXS}</if>
      <to-view-id>/mainMenu.xhtml</to-view-id>
</navigation-case>

Specification says:
To match an outcome value of null, the <from-outcome> must be absent and the <if> element present. 

For Evaluation look at  org.apache.myfaces.application.NavigationHandlerImpl#calcMatchingNavigationCase

perhaps especially at
if(outcome == null && (cazeOutcome != null || cazeIf == null) && actionRef == null)  {
                continue;
            }




--
This message was sent by Atlassian JIRA
(v6.2#6252)