Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove "item" node when using @Selection #35

Open
lalsamir opened this issue Feb 24, 2016 · 1 comment
Open

Remove "item" node when using @Selection #35

lalsamir opened this issue Feb 24, 2016 · 1 comment

Comments

@lalsamir
Copy link

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
Copy link

cmacioch commented Jun 3, 2016

This also happens in AEM6.2

Here is a sample from the generated _cq_dialog.xml:
<speakerPath cq:showOnCreate="{Boolean}true" disabled="{Boolean}false" fieldLabel="Speakers" jcr:primaryType="nt:unstructured" name="./speakerPath" renderReadOnly="{Boolean}true" required="{Boolean}false" sling:resourceType="granite/ui/components/foundation/form/select"> <items jcr:primaryType="nt:unstructured"/> <datasource jcr:primaryType="nt:unstructured" sling:resourceType="circuit-site-v2/datasources/speakers"/> </speakerPath>

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants