how can I get all components with name x in all contexts?
Here my scenario:
On a page I am showing a list (dataTable) of persons, with options to add a new person or delete an existing one. The table is backed by a PersonListController (name=personListController), which caches the currently shown persons. The PersonListController is in conversation scope. Now a user adds or deletes a person. Now I need to refresh ALL PersonListControllers of all users (as the persons are cached and the change would not be shown otherwise). With Component.forName("personListController") I only get the PersonListController of the request's user. How can I get all?
maybe you can define the List or Set on ScopeType.APPLICATION an ouject it on application scope. then you can in- and outject this component on your Controller class and it saves you from accessing all instances of the conroller.
or if you store the persons in a database you can query the database whenever you instantiate the list.
would that help?