Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

NitroHazeDev
NitroHazeDev
Online

Badges

Badges
39

Accepted Solutions

Accepted Solutions
10

Likes Received

Likes Received
142

Posts

Posts
333

Discussions

Discussions
51

Questions

Questions
282

Ideas

Ideas
0

Blog Posts

Blog Posts
1
Top badges earned by NitroHazeDev
Customize the badges you want to showcase on your profile
Re: AEM - Sling model - Unable to @Inject on 6.5.12 - Adobe Experience Manager 21-06-2022
Hi @SantoshSai nothing but childresource helped. Adapting to resource itself .. I see many use it online the same way. I can’t seem to understand why it worked in 6.2 and not in 6.5.12 and now wondering if @childresource with adapting to resource is the right way to go although it works for me also what gets adapted to is the carousel parent node and I need it to say, ..yes I found the node multi or not

Views

42

Like

1

Replies

0
Re: AEM - Sling model - Unable to @Inject on 6.5.12 - Adobe Experience Manager 21-06-2022
@SantoshSai That did not work , the @Self, it points to the node that holds a resource type A. The component's HTML with resource type A invokes the model with @childresource and it seemed to work , without adapting to SlingHttpServletRequest. Are we sure we compulsorily need to adapt to SlingHttpServletRequest? http://www.sgaemsolutions.com/2017/08/deep-dive-on-sling-models-part-1.html @Model(adaptables = Resource.class)public class CarouselController {@inject@Optional@ChildResource(name = "mul...

Views

49

Like

1

Replies

2
Re: AEM - Sling model - Unable to @Inject on 6.5.12 - Adobe Experience Manager 21-06-2022
Trying with @Inject@Optional@ChildResource(name = "multi")public Resource multi; Weird this worked on 64 and fails on 6.5.12. Will update if i succeed , this will avert the boolean check as well@SantoshSai

Views

62

Like

1

Replies

4
Re: AEM - Sling model - Unable to @Inject on 6.5.12 - Adobe Experience Manager 21-06-2022
@SantoshSai Those paths are set in the dialog and no manipulation is done to the paths. The multi as in the original thread is referring to the root node or the multi node based on scenarios mentioned above [A] and [B]Below code is exactly that returns the root node if multi is not available or multi node if it is ,when i print multi.path in html. There is no post construct.Given the structurecarousel1/ slides multiif there is no multi node as a child node to carousel ,the controller.multi.path ...

Views

67

Like

1

Replies

5
Re: AEM - Sling model - Unable to @Inject on 6.5.12 - Adobe Experience Manager 21-06-2022
I have a workaround , testing if the node multi is with a name "multi" and passing the boolean to the html class from model, but not super happy about it, what would you like me to test @SantoshSai

Views

75

Like

1

Replies

7
Re: AEM - Sling model - Unable to @Inject on 6.5.12 - Adobe Experience Manager 21-06-2022
Hi @SantoshSai , thanks for the input, it did not help. I hadn't tried it per say until you brought it out but in vain@SlingObject@Optional

Views

85

Like

1

Replies

9
AEM - Sling model - Unable to @Inject on 6.5.12 - Adobe Experience Manager 21-06-2022
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. @Model(adaptables = Resource.class)public class CarouselController {@inject@Optionalpublic Resourc...

Views

96

Likes

0

Replies

11
Re: Possible bug ? AEM 6.5.8 and 6.5.12- Querybuilder -Group daterange and path - Adobe Experience Manager 14-06-2022
Thanks @DEBAL_DAS @Arun_Patidar .!! 

Views

32

Like

1

Replies

0
Re: Possible bug ? AEM 6.5.8 and 6.5.12- Querybuilder -Group daterange and path - Adobe Experience Manager 13-06-2022
thanks for your response @shaileshbassi I agree but could not use it cause it defeats the purpose since the requirement is to query across groupings of path and date range

Views

62

Like

1

Replies

0
Re: Querybuilder -Group daterange and path - Adobe Experience Manager 13-06-2022
Anyone please?

Views

99

Like

1

Replies

0