Aikau example定义如下:url.context如何在aikau小部件中初始化?
{
name: "alfresco/forms/controls/DojoSelect",
config: {
label: "List Type",
name: "prop_dl_dataListItemType",
value: "dl:event",
optionsConfig: {
publishTopic: "ALF_GET_FORM_CONTROL_OPTIONS",
publishPayload: {
url: url.context + "/proxy/alfresco/api/classes/dl_dataListItem/subclasses",
itemsAttribute: "",
labelAttribute: "title",
valueAttribute: "name"
}
}
}
}
注重url.context
。我没有在示例源中找到任何url
定义。看来url
隐式地在某处进行了初始化。但究竟在哪里?对象有什么其他字段/方法url
?
它涉及到冲浪根对象。 http://docs.alfresco.com/5.1/references/APISurf-rootscoped.html – izodev
你为什么没有发布答案? – Cherry