I'm using AEM 6.5.8
and what I want is to do something like below
<select
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/select"
fieldLabel="select"
name="./select">
<items jcr:primaryType="nt:unstructured">
<option1
jcr:primaryType="nt:unstructured"
selected="{Boolean}true"
text="option1"
value="option1"/>
<option2
jcr:primaryType="nt:unstructured"
text="option2"
value="option2"/>
</items>
<datasource
jcr:primaryType="nt:unstructured"
sling:resourceType="/test/run/url"/>
</link>