Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3916

Wrong navigation handling for <if> clause on null outcome

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 2.2.4
    • None
    • JSR-344
    • None

    Description

      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;
      }
      

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            dappl Dominik Appl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: