我要動態地根據我從THR網址(也就是Servlet)填充組合框動態地ExtJS的
下面是我的ExtJS的代碼接收到的數據填充組合框:
{
xtype:'combo',
id: 'shoutoutsTags',
fieldLabel: 'Tag',
value: '',
mode: 'local',
width: 200,
store: new Ext.data.JsonStore({
id:'ms',
url:'http://localhost:8080/ezdi/extServlet',
//totalProperty:'totalCount',
root:'rows',
fields:[
{name:'un'},
{name:'pwd'}
],
autoLoad:true
}),
displayField: 'un',
valueField: 'pwd',
typeAhead:true,
minChars:1,
forceSelection: true,
triggerAction: 'all',
hideTrigger:true
//hiddenName: 'mytag'
}
但我下面讓錯誤,我的網址不會被調用:
消息:「您正在使用ServerProxy但沒有一個網址提供它。」
sourceClass: 「Ext.data.proxy.Server」
的sourceMethod: 「buildUrl」 未捕獲的異常:您正在使用ServerProxy 但沒有用 網址提供它。
建議我如何克服這個錯誤。
您使用的是什麼版本的ExtJs? – 2011-06-14 13:09:01
@torbjorn我使用Extjs 4 – mahesh 2011-06-15 06:51:25