SmartGWT Power 3.0 2011-11-16 (same behavior with a 10/27 build)
Calls to DynamicForm.saveData complete normally (data is persisted properly), but DynamicForm.valuesHaveChanged is still true afterward. I can work around this by calling rememberValues myself in a callback, but I don't think I should have to? e.g., the following yields
true
true
false
	
							
						
					Calls to DynamicForm.saveData complete normally (data is persisted properly), but DynamicForm.valuesHaveChanged is still true afterward. I can work around this by calling rememberValues myself in a callback, but I don't think I should have to? e.g., the following yields
true
true
false
Code:
	
			VLayout layout = new VLayout();
		final DynamicForm form = new DynamicForm();
		form.setDataSource(DataSource.get(ds.dataSourceId()));
		Criteria filter = new Criteria(ds.companyIdField(), "501");
		form.fetchData(filter);
		ToolStrip menu = new ToolStrip();
		ToolStripButton save = new ToolStripButton();
		save.setIcon("icons/save.png");
		save.setTooltip("save");
		save.addClickHandler(new ClickHandler() {
			public void onClick(ClickEvent event) {
				GWT.log(form.valuesHaveChanged().toString());
				form.saveData(new DSCallback() {
					public void execute(DSResponse response, Object rawData, DSRequest request) {
						GWT.log(form.valuesHaveChanged().toString());
						form.rememberValues();
						GWT.log(form.valuesHaveChanged().toString());
					}
				});
			}
		});
		menu.addButton(save);
		layout.addMember(menu);
		layout.addMember(form);
		layout.draw();

Comment