I’m getting my hands on JSF 2.0 and have certain doubt about new annotation based auto-wiring (declaration of managed beans without any code in faces-config.xml).
As far as I am annotations are great and easy, but problem may come to a certain need of substituting one bean with another in a big system which, if annotations were used, will result in a need to delete certain classes (or similar dirty hack), while it could be easily fixed in faces-cofig.xml.
Please, share your experience on the matter. What should be considered more convenient and why?
As was said in Core JavaServer Faces (Third Edition):
Annotations allow rapid development and reduce redundant xml coding. Generally, it greatly depends on the project itself.