Multifield component creation error in AEM 6.5
Hello everyone!
I am trying to no avail to create a component for my Multifield, I have followed some guides (https://aemhints.com/2020/10/24/coral-nested-multifield-aem65/ ,https://blogs.perficient.com/2018/08/24/using-sling-models-with-nested-composite-mulitifields-in-aem-6-3/ ) but unfortunately it seems not to take the multifield field.
This is my html:
<multi
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"
fieldLabel="String">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container"
name="./multifield">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<text
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Text"
name="./text"/>
</items>
</column>
</items>
</field>
</multi>
this is the component:
@Model(...)
public class Multi {
@586265
@ValueMapValue(injectionStrategy = InjectionStrategy.OPTIONAL)
private String text;
public String getText() {
return text;
}
@586265
@14766979
@ValueMapValue(injectionStrategy = InjectionStrategy.OPTIONAL)
public java.util.List<String> multifield = new ArrayList<>();
}
But when I go to debug I see that nothing passes and always returns the null. What am I doing wrong?

