Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-795

ViewAccessScope gets destroyed in combination with f:viewAction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0
    • 1.2.1
    • JSF22-Module
    • None

    Description

      Initial setup:
      Two ViewAccessScoped beans, two pages and both beans are accessed on both pages.

      Expected behavior:
      When navigating between the two pages both ViewAccessScope should stay alive regardless of f:viewActions.

      Actual behavior:
      The f:viewAction seems to count as an additional request for DeltaSpike and thus destroys all ViewAccessScoped beans that are not touched by it. Accessing one of the ViewAccessScoped beans in a f:viewAction destroys the bean that is not accessed. Accessing none of the ViewAccessScoped beans will destroy all ViewAccessScoped beans.

      Attachments

        1. DELTASPIKE-795.patch
          0.8 kB
          Gerhard Petracek
        2. DemoDeltaspikeScope.zip
          6 kB
          Ortwin Escher

        Activity

          People

            tandraschko Thomas Andraschko
            oescher Ortwin Escher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: