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.
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.