Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JSON不是';对话框启动时,t加载到选择字段中_Json_Xml_Dialog_Aem - Fatal编程技术网

JSON不是';对话框启动时,t加载到选择字段中

JSON不是';对话框启动时,t加载到选择字段中,json,xml,dialog,aem,Json,Xml,Dialog,Aem,这是我的组件的_cq_对话框的.content.xml: <?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:sling="http://sling.

这是我的组件的_cq_对话框的.content.xml:

<?xml version="1.0" encoding="UTF-8"?>
                <jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0" jcr:primaryType="nt:unstructured" jcr:title="Store Tile" sling:resourceType="cq/gui/components/authoring/dialog" helpPath="en/cq/current/wcm/default_components.html#Carousel">
                    <content jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/container">
                        <layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/tabs" type="nav" />
                        <items jcr:primaryType="nt:unstructured">
                            <titletext jcr:primaryType="nt:unstructured" jcr:title="Store Tile Properties" sling:resourceType="granite/ui/components/foundation/section">
                                <layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns" />
                                <items jcr:primaryType="nt:unstructured">
                                    <column jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/container">
                                        <items jcr:primaryType="nt:unstructured">
                                            <storelist jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/select" options="/apps/platform-do/components/general/store-tile/store.json" fieldLabel="Store" name="./jcr:storeID" optionsRoot="mydata" optionsTextField="label" optionsValueField="id" allowBlank="false" defaultValue="1" xtype="selection" type="select" />
                                        </items>
                                    </column>
                                </items>
                            </titletext>
                        </items>
                    </content>
                </jcr:root>
但这片土地还是空无一人

我做错了什么


谢谢

我认为选择的
xtype
无法理解您输入的JSON(“/apps/platform do/components/general/store tile/store.JSON”)

根据,JSON的格式必须与以下格式类似,带有
文本、值和/或qtip。

[
    {
        value: "pink", // all types except "combobox"
        text: "Pink",
        qtip: "Real Pink" // "select" and "combobox"
    }
]
尝试在下面的结构中转换你的
store.json
,看看是否有效

[
  {
    "text":"one",
    "value":"1"
  },
  {
    "text":"two",
    "value":"2"
  }
]

我认为选择
xtype
无法理解您输入的JSON(“/apps/platform do/components/general/store tile/store.JSON”)

根据,JSON的格式必须与以下格式类似,带有
文本、值和/或qtip。

[
    {
        value: "pink", // all types except "combobox"
        text: "Pink",
        qtip: "Real Pink" // "select" and "combobox"
    }
]
尝试在下面的结构中转换你的
store.json
,看看是否有效

[
  {
    "text":"one",
    "value":"1"
  },
  {
    "text":"two",
    "value":"2"
  }
]

如果在浏览器中点击:/apps/platform do/components/general/store tile/store.JSON,是否会看到所需的JSON?如果在浏览器中点击:/apps/platform do/components/general/store tile/store.JSON,是否会看到所需的JSON?