Expand my Community achievements bar.

SOLVED

Granite multifield with composite subcomponents

Avatar

Level 2

According to the docs in /libs/granite/ui/components/foundation/form/multifield/render.jsp there is the possibility to have several subcomponents within a multifield:

...  

* If the subcomponent is a composite, it is its responsibility to concatenate the fields into
 * one, before the form gets submitted, and to separate them again on rendering

....

Does someone have an example for such a multifield with a composite children? The only references to multifield I found in AEM6 were with only one simple component as a child.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Please refer to the documentation https://blogs.perficient.com/2018/08/24/using-sling-models-with-nested-composite-mulitifields-in-aem... 
It uses multifield with multiple fields.

 

aanchalsikka_0-1701834456926.png

 


Aanchal Sikka

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Please refer to the documentation https://blogs.perficient.com/2018/08/24/using-sling-models-with-nested-composite-mulitifields-in-aem... 
It uses multifield with multiple fields.

 

aanchalsikka_0-1701834456926.png

 


Aanchal Sikka