Solved
SOLVED: Find all the components on the current page in AEM?
Hi,
I need to find all components of a certain type on the current page in AEM?
I tried to do it using
ComponentManager componentManager = request.adaptTo(ComponentManager.class);
Collection<Component> components = componentManager.getComponents();
but my componentManager is null?