-
26 Feb 2010 7:43 AM #1
ComboBox<BeanModel> + auto-complete
ComboBox<BeanModel> + auto-complete
Hello,
Previously I tried the ComboBox<String> widget and I saw that auto-completion works fine.
Now I have a ComboBox<BeanModel> who only display the "name" property of my bean.
Unfortunately the auto-completion doesn't work.Code:combo = new ComboBox<BeanModel>(); combo.setStore(store); combo.setForceSelection(true); combo.setDisplayField("name"); combo.setLazyRender(false);
I also tried
but nothing to do..Code:combo.setFieldLabel("name");
Does anyone have an idea ?
-
1 Mar 2010 1:58 AM #2
-
2 Mar 2010 12:30 AM #3
Hi,
Have you tried to override your bean "toString()" method?
-
2 Mar 2010 7:24 AM #4
Good idea and thanks for your help but it doesn't solve the problem
-
3 Mar 2010 12:16 AM #5
Sorry for asking, but have you a "name" property in your bean with its getter and setter?
-
3 Mar 2010 12:22 AM #6


Reply With Quote