-
6 Jan 2009 3:29 AM #11
forget what I suggested .. What I said is that it is for you to test your code ..
look
You can test too, with your new code this?
now update this code
will always return ""Code:@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { System.out.println(request.getParameter("comboBox-hidden")); }
-
12 Jan 2009 4:50 AM #12
test this example... that in gxt 1.2.1 failed
if you change de combo1 in html, the combo2 not reset,Code:public void onModuleLoad() { FormPanel form = new FormPanel(); List<TestModel> list = new ArrayList<TestModel>(); TestModel testModel = new TestModel(); testModel.setCodigo(1); testModel.setNome("name 1"); list.add(testModel); testModel = new TestModel(); testModel.setCodigo(2); testModel.setNome("name 2"); list.add(testModel); ListStore<TestModel> store = new ListStore<TestModel>(); store.add(list); ComboBox<TestModel> combo1 = new ComboBox<TestModel>(); combo1.setFieldLabel("Combo 1"); combo1.setStore(store); combo1.setDisplayField("nome"); combo1.setValueField("codigo"); final ComboBox<TestModel> combo2 = new ComboBox<TestModel>(); combo2.setFieldLabel("Combo 2"); combo2.setStore(store); combo2.setDisplayField("nome"); combo2.setValueField("codigo"); combo2.setValue(testModel); combo1.addListener(Events.Select, new Listener<BaseEvent>() { public void handleEvent(BaseEvent be) { combo2.reset(); } }); form.add(combo1); form.add(combo2); RootPanel.get().add(form); }
remove this line..
and work fineCode:combo2.setValue(testModel);
-
21 Jan 2009 3:06 PM #13
Is there any status on this bug? I am running into the same issue. Where can I find a fix for this?
Thanks!
-
21 Jan 2009 3:23 PM #14
There is a fix for this ready and it will be uploaded into svn soon.
-
26 Jan 2009 4:13 AM #15
-
27 Jan 2009 5:09 AM #16
you test with all condition that I post?
-
27 Jan 2009 5:12 AM #17
-
29 Jan 2009 5:28 AM #18
-
29 Jan 2009 5:37 AM #19
-
29 Jan 2009 5:45 AM #20
for you, the combo 2 its completed with "name 2"?
when you change the value of the combo 1 the combo 2 reset?
I don't believe that the same code work for you and don't for me



Reply With Quote