Hello there.

I'd like to know if there's a way to get a list of the names of the managed
beans that are declared in faces-config.xml. I'm trying to get my beans to
implement an interface and call specific methods upon a particular phase.

However, even if I implement a PhaseListener, I still have to do something
like this:

MyBean1 bean = (MyBean1) FacesContext.getCurrentInstance
().getApplication().getVariableResolver().resolveVariable(
FacesContext.getCurrentInstance (), "myBean1");

bean.callDesiredMethod();

Only I'd like to do this for any of my beans in the scope... is this
possible?

Reply via email to