Expand my Community achievements bar.

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