I'm using cdi and jsf2 on glassfish 3 and also using Steven Verborgh's @ViewScope, it's working almost fine, the only problem is the @PreDestroy callback that is never called. I tried the @ManagedBean from jsf like suggested on the first discution about this but still doesn't work.
Lookin on the ViewContext class, I saw that the isActive() method just returns true, does this have anything to do with the problem? Have anyone solved the @PreDestroy callback problem?
I've heard Verborgh's @ViewScope is kind of
proof of concept and is not cleaning up.
You can use myFaces Codi instead - they have nice Scopes like @ViewAccessScope and the new version 0.9.1 works fine with Glassfish 3.0.1, as long as you don't have to use Primefaces p:graphicImage or p:uploadFile.