icfnext / cq-component-maven-plugin

Other
22 stars 35 forks source link

Remove "item" node when using @Selection #35

Open lalsamir opened 8 years ago

lalsamir commented 8 years ago

When using @Selection to create a drop down field a new node called "item" is being added next to the datasource node and this causes the drop down field to not load options. It does not make the datasource work. This only happens when Service Pack 1 is installed for AEM 6.1. I've attached a screenshot highlighting the extra node item that needs to be removed and another screenshot of a working drop down field where the datasource works.

extranode workingdatasource

cmacioch commented 8 years ago

This also happens in AEM6.2

Here is a sample from the generated _cq_dialog.xml: `

            <datasource jcr:primaryType="nt:unstructured" sling:resourceType="circuit-site-v2/datasources/speakers"/>
          </speakerPath>`

The <items jcr:primaryType="nt:unstructured"/> element should not be there.