Basic Adaptive Image Custom Component
I'm trying to create a custom adaptive image component by copying the directory:
/libs/foundation/components/adaptiveimage
and pasting it into my project directory:
/apps/myproject/components/content/adaptiveimage
When I place my custom component into a parsys, it is not functioning as the original does. It will always choose the high resolution image and it won't fetch a different resolution on page resize like the original.
This happens regardless of whether I set the sling:resourceSuperType to /libs/foundation/components/adaptiveimage or if I delete the adaptiveimage.jsp from my custom component.
I understand this may be happening because the java AdaptiveImageComponentServlet (com.day.cq.wcm.foundation.impl.AdaptiveImageComponentServlet) located in /libs/foundation/src/impl/src/com/day/cq/wcm/foundation/impl does not work with my custom component because of it's location.
However, I am unable to determine how to make it function with my custom adaptive image. How is this done?