dialog.xml
<values
jcr:primaryType="nt:unstructured"
fieldLabel=“Values”
name="./values"
xtype="multifield"/>
JSP
<c:forEach items="${properties. values}" var="value" varStatus="loop">
<c:if test="${loop.index == 0}">
${value}
</c:if>
<c:if test="${loop.index != 0}">
and ${value}
</c:if>
</c:forEach>
For this multi-field when author enters only one Value as "Some text , Some text2"
JSP displays : "Some text and Some text2" . Adding ',' in the single multifield value converts it to an array (I think) . Is this the default implementation for multifield ?
But When Author Enters two separate values for Multi-field :
"Some text , Some text2 "
"Some text , Some text2 "
JSP displays it correctly : Some text , Some text2 and Some text , Some text2