AEM - Sling model - Unable to @Inject on 6.5.12
All,
On 64 the below logic resolved to the node multi n case of [A] or it returned empty in case of [B] but on 65 , this returns the parent node[B] if node multi is not found else it returns as in [A] that is expected. Tried @Named but didn't help. Please let me know if i am missing something
I want it to resolve to multi only. This was working on 64 and now we migrated to 6.5.12 and it is broken.
<sly data-sly-use.carousel="com.test.aem.core.components.carouselController">
@Model(adaptables = Resource.class)
public class CarouselController {
@586265
@7392697
public Resource multi;
The content structure
For [A] - with "multi" node's presence, ${carousel.multi.path} is the path to "multi" node
[A]
/content/X/..
/group
/slides
/multi
For [B] - where "multi" node is missing, ${carousel.multi.path} is the path to "group" node
[B]
The content structure is
/content/X/..
/group
/slides