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

SKIP_ITERATION visit hint not set when component tree is visited during navigation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.17
    • 2.1.18, 2.2.8
    • General
    • None

    Description

      During navigation, the component tree is visited to publish the PreDestroyView event to all components in the tree ( org.apache.myfaces.application.NavigationHandlerImpl.handleNavigation).

      When the VisitContext is created, the SKIP_ITERATION VisitHint is not set in the VisitContext. The only thing that is set is the SKIP_ITERATION attribute in the FacesContext attribute map, which is not honoured by libraries such as ICEfaces.

      This can cause an issue if rows in tables are visited and these rows have EL expressions that access backing beans that, for some or other reason, is no longer available. In our case we switch between different contexts in our application before performing the navigation and the EL expression is evaluated against the new context instead of the old context, causing issues.

      Attachments

        1. myfaces-navimpl.diff
          3 kB
          Leon Steffens

        Activity

          People

            lu4242 Leonardo Uribe
            leonsteffens Leon Steffens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: