AEM 6.5.12 & Core components 2.17.14
I need to create an image component that proxies the core component . It needs a primary and secondary image. The dialog is just two fileupload nodes. I can do it with just one image but I can't figure out how to add a second.
My first thought was to set fileNameParameter, fileReferenceParameter, & name to something like this to make it easier for the sling model to find them.
<primaryFile
fileNameParameter="./primary/fileName"
fileReferenceParameter="./primary/fileReference"
name="./primary/file">
<secondaryFile
fileNameParameter="./secondary/fileName"
fileReferenceParameter="./secondary/fileReference"
name="./secondary/file">
Problem is I can't figure out how to point my sling model to the files. I tried this in my sling model but it didn't work.
@Self
@Via(type = ResourceSuperType.class)
@ValueMapValue(name="primary")
Image primaryImage;
@Self
@Via(type = ResourceSuperType.class)
@ValueMapValue(name="secondary").
Image secondaryImage;
What am I missing to make this work?