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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.17
    • Fix Version/s: 2.1.18, 2.2.8
    • Component/s: General
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: