The code for this tutorial was developed on AEM version 188.8.131.52 which is the latest at the time of this writing. To replicate the project, you can download or clone the source code or create the project using the AEM Project Archetype version 24 Maven template as I have done.
Rather than create a new component, we’re just going to modify the existing helloworld component that is included with the project.
In the helloworld dialog .content.xml, add the following component nodes after the existing text component node.
1. Heading component (optional)
2. Composite Multifield component
The Multifield needs to be composite to store the cars jcr:content as item nodes.