PDA

View Full Version : Combo box contents don't load



kolaloka
29 Jan 2010, 4:14 AM
Hi All,

I have the following problem: I want to load combo box contents from a servlet using JSON transfer format. The servlet is not called at all, nothing can be seen in Firebug net panel. The combo box code is:
new Ext.form.ComboBox({
hiddenName:'sorszam',
store: new Ext.data.JsonStore({
fields: ['menlevfaz', 'sorszam'],
root: 'gyoker',
url: Alk.configuration.servlet_base+'kombomenlevfej'
}),
valueField:'menlevfaz',
displayField:'sorszam',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
emptyText:'Valassz menetlevelet...',
selectOnFocus:true,
width:190
})
The application URL is http://att-it.homelinux.net:22880/kvg/index.html
What would fire this AJAX call?

thank you in advance, best regards: Balázs

jsemmanuel
29 Jan 2010, 6:37 AM
try autoLoad:true in the store?

kolaloka
29 Jan 2010, 7:05 AM
Hi!

Thank you, that helped. Meanwhile I decided to call JsonStore.load manually, which also solved the problem, and will be important for some functionality. Autoload will be better for the rest.

Best regards: Balázs