-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@PreDestroy method on View Scoped beans are never called #4
Comments
Will check and response later |
I noticed that the Beans are removed to change pages or to expire the session. Is that correct? |
@giquieu Do you know how JSF view beans scope should work? |
@rumatoest I do not know much for sure ... I'm learning ... |
@giquieu BTW @MaikelNait We've done some tests. And looks like this methods are called eventually, but it depends on particular JSF implementation. They are actually not called when you are expecting them to be called :) |
It seems, when using a custom Spring scope to handle the JSF View Scoped beans, as in your project, their @PreDestroy method is never called, and therefore we may have a memory leak here.
Even more, the ViewScope.valueUnbound() or ViewScope.remove(), or even the ViewScopeViewMapListener.doCallback() are never called.
How to verify that the ViewScoped beans are really removed from the scope when navigating to a new View ???
The text was updated successfully, but these errors were encountered: