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

Experience_Clou
Experience_Clou
Offline

Badges

Badges
0

Accepted Solutions

Accepted Solutions
0

Likes Received

Likes Received
0

Posts

Posts
3

Discussions

Discussions
3

Questions

Questions
0

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by Experience_Clou
Customize the badges you want to showcase on your profile
Re: SlingModel @ChildResource annotation not using the defaultInjectionStrategy defined at model class level - Adobe Experience Manager 19-05-2016
Hi Scott,I did, compilation fails as it cant find the Enum InjectionStrategy.[ERROR] symbol: method injectionStrategy()[ERROR] location: @interface org.apache.sling.models.annotations.injectorspecific.ChildResource[ERROR] ............../ui/slingmodel/components/global/header/HeaderSlingModel.java:[91,40] cannot find symbol[ERROR] symbol: variable InjectionStrategyThis is what I did - @ChildResource(injectionStrategy = InjectionStrategy.OPTIONAL)Its because the InjectionStrategy enum was introduc...

Views

1.1K

Likes

0

Replies

0
SlingModel @ChildResource annotation not using the defaultInjectionStrategy defined at model class level - Adobe Experience Manager 18-05-2016
I have a sling model in which I am injecting a multifield resources using @ChildResource annotation. This works fine when the multifield has been populated but fails if its not. I have defined the defaultInjectionStrategy as OPTIONAL at class level but its not used, I even tried @Optional annotation but it also doesn't work. However if I provide optional=true to the @ChildResource annotation, the injection works fine in case of absent multifield nodes. I am using AEM 6.1 SP1 for running this mod...

Views

2.7K

Likes

0

Replies

3