Ok, thank you Jacob, that works fine for me!
Now the only problem I still have, is that If I have richfaces-components they will not appear as childs on my ViewRoot.
I get the ViewRoot with:
FacesContext context = FacesContext.getCurrentInstance(); context.getViewRoot().getChildren();
for (UIComponent child : children) { }