If I want to create more than one instance of managed bean in JSF 2.0, under different names in the same scope, how should I proceed? Ideally, I want the equivilant to (for
One possibility is to make your class abstract and subclass it into as many named instances as you need, which you may leave empty. This will also help you separate future managed bean functionality which really only concerns one of the cases.
You will have to move the @ManagedBean (and scope) annotation to all the subclasses, regrettably, even though it is @Inherited. For the current version of Mojarra atleast, others I don't know.