1 Reply Latest reply on Feb 8, 2011 7:47 PM by Ben Vanberg

    removeFromAllContexts with page scope

    Ben Vanberg Newbie

      I have a page scoped component with an @Factory method. I'm attempting to use Contexts.removeFromAllContexts() to invalidate the factory. removeFromAllContexts does not work for page scope. When I change to conversation scope this scheme works fine.


      Any ideas from the community? Searching for information on removeFromAllContexts results in pretty much nothing.


      Thanks,


      Ben.

        • 1. Re: removeFromAllContexts with page scope
          Ben Vanberg Newbie

          Looks like inside PageContext.remove(String name) there are two maps (contexts). previousPageMap and nextPageMap. My factory context variable is in previousPageMap, but the remove looks in nextPageMap. When the user is returned to the page it uses the page scoped factory just fine, presumably the one that I wanted to remove from previousPageMap.


          Seam bug?