1. #11
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default


    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

    Code:
    @Override
    	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    
    		System.out.println(request.getParameter("comboBox-hidden"));
    
    	}
    will always return ""

  2. #12
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default


    test this example... that in gxt 1.2.1 failed

    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);
    
    	}
    if you change de combo1 in html, the combo2 not reset,

    remove this line..

    Code:
    		combo2.setValue(testModel);
    and work fine

  3. #13
    Ext User
    Join Date
    Dec 2008
    Posts
    2
    Vote Rating
    0
    Creakhead is on a distinguished road

      0  

    Default


    Is there any status on this bug? I am running into the same issue. Where can I find a fix for this?

    Thanks!

  4. #14
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    There is a fix for this ready and it will be uploaded into svn soon.

  5. #15
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN.

  6. #16
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default


    you test with all condition that I post?

  7. #17
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    I tested it and it works.

  8. #18
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default


    Quote Originally Posted by fother View Post
    test this example... that in gxt 1.2.1 failed

    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);
    
    	}
    if you change de combo1 in html, the combo2 not reset,

    remove this line..

    Code:
    		combo2.setValue(testModel);
    and work fine
    GXT: 1.2.2
    GWT: 1.5.3
    Firefox: 3.0.5


    this problem continues

  9. #19
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    works fine for me.

  10. #20
    Ext User fother's Avatar
    Join Date
    Sep 2007
    Location
    Brazil
    Posts
    744
    Vote Rating
    -1
    fother is an unknown quantity at this point

      0  

    Default


    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

Thread Participants: 3