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

Avatar

Level 6

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

Avatar

Correct answer by
Community Advisor
3 Replies

Avatar

Correct answer by
Community Advisor

Avatar

Level 6

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