How to declare many JSF managed beans at once
问题 I'm developing a JSF 2.0 app that consumes a SOAP-based web service. I want to use in the JSFs pages most of the generated client classes for the Web Service - but the client classes are not managed beans (nor CDI beans)... and as there are a lot of client classes I don't think is feasible to add @ManagedBean or @Named annotations to all classes... Let me give you an example so things might get a bit clearer: The User class is a generated client class - this class has only two attributes