我要动态地根据我从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