title: AEM - xtype 'tags' within Multifield
body: <p>i'm writing a multifield of xtype tags
  it's dialog is</p>
  
  <pre><code>                &lt;path
                      jcr:primaryType="cq:Widget"
                      fieldLabel="Compare Tags"
                      name="./compareTag"
                      xtype="multifield"&gt;
                      &lt;fieldConfig
                          jcr:primaryType="cq:Widget"
                          xtype="tags"&gt;
                          &lt;namespaces jcr:primaryType="cq:WidgetCollection"&gt;
                              &lt;categorynm
                                  jcr:primaryType="nt:unstructured"
                                  maximum="1"
                                  name="properties"/&gt;
                          &lt;/namespaces&gt;
                      &lt;/fieldConfig&gt;
                  &lt;/path&gt;
  </code></pre>
  
  <p>it's working fine when i open dialog for first time. however, after a page refresh, the multifield items wont have any pre-populated data.
  on further inspection, i have found out that the json responsible for populating the data is</p>
  
  <pre><code>"compareTag": [
          "properties:orientation/landscape",
          "properties:style/monochrome",
          "properties:style/color"
      ]
  </code></pre>
  
  <p>in order to show dialog with previously selected values, it should have been</p>
  
  <pre><code>"compareTag": [
              [
                  "properties:orientation/landscape"
              ],
              [
                  "properties:style/monochrome"
              ],
              [
                  "properties:style/color"
              ]
          ]
  </code></pre>
  
  <p>and it's because the xtype 'tags' itself stores it's values in a multifield. can this requirement be met using OOTB functionality only.
  thanks in advance.</p>