Closed pizzi80 closed 3 months ago
Agreed, but viewRoot.getViewMap()
doesn't recreate map when viewRoot.getViewMap(false)
returns non-null
. It just returns exactly the same map.
Your issue is caused by something else. After invalidating the session it's wise to immediately send a redirect instead of forwarding to a page which possibly requires a session.
viewRoot.getViewMap()
actually call viewRoot.getViewMap(true)
which seems to recreate the Map, isn't it?
Your issue is caused by something else. After invalidating the session it's wise to immediately send a redirect instead of forwarding to a page which possibly requires a session.
Yes, probably could be my fault , actually I'm using some async actions during normal ajax action
on a WebApp that I've migrated from Jsf 2.2 + Seam 2.3
where it was safer to use this pattern bacause all the beans were "@Synchronized
"
No, it doesn't recreate. It only creates the map when it's not created yet. Same idea as request.getSession(true)
. It also doesn't recreate the session when it already exists. The true
flag is merely a signal that it should automatically create when it doesn't exist and thus never returns null
. The false
flag won't autocreate and thus return null
when it doesn't exist.
Describe the bug
FacesContextImpl is trying to recreate the ViewScope Map ?
This is the exception I found in the server log: