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)

Reply via email to