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

SOLVED

@childresource in sling Model for multifield

manikanthar1295
Level 4
Level 4

Hi Team,

 

I have to create Multifield for that i will use SlingModel.

Now how i can use @childresource to get the resource in sling model.

If any one create done multifield with child resource annotation plz share the code  it will be useful for me to understand.

 

Regards

Manikantha R

1 Accepted Solution
Kiran_Vedantam
Correct answer by
Community Advisor
Community Advisor
3 Replies
Kiran_Vedantam
Correct answer by
Community Advisor
Community Advisor
manikanthar1295
Level 4
Level 4

Hi Team,

 

This is way where i am getting child resource

Resource resource=componentResource.getChild("customerDetals");

 

But how i can use @Childresource annoattaon in this scenario.

 

Regards

Manikantha R