Dear All,

Actual code reduced to demonstrate the problem. 

// widget 
public interface LocationPrefEditView extends IsWidget, 
Editor<LocationPrefProxy>, 
                 HasMask, HasPresenter<Presenter>,
 HasVisibility {

ValueListBox<String> state();
ValueListBox<String> city();
        // .. omitted
}


// in activity

ListEditor<LocationPrefProxy, LocationPrefEditView> editor = 
ListEditor.of(new ViewSource());
driver.initialize(editor);

CustomerServiceRequest request = requestFactory.getCustomerServiceRequest();
driver.edit(list, request);

List<LocationPrefProxy> displayedList = editor.getList();

// adding a new proxy to list
LocationPrefProxy locationPrefProxy = 
request.create(LocationPrefProxy.class);
displayedList.add(locationPrefProxy);

request.saveLocationPreference(place.getCustomerId(), 
CallManager.getInstance().getIdentifier(), list);

// onsave(), elsewhere

*// this is always true (driver.isChanged == false always), but 
driver.isDirty() gives correct value, depending upon the state of the editor
*
if (!driver.flush().isChanged()) { 
return;
}

// if above check is removed, this always saves empty proxy
driver.flush().fire( /* receiver */ );

#

*The same code was working properly in GWT 2.2, I migrated the code to 2.3 
today, and I'm facing this issue. *

Any help (or *workaround*) is appreciated. 

@Thomas 
>> But in 2.3 there will be changes: RFED introduce special support for a 
HasRequestContext interface, similar to HasEditorDelegate but giving your 
the RequestContext, so the editor can do a context.create() on the same 
context that is used to edit the proxies (probably the reason you have the 
"" exception): 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5892

Should we do something different for getting list editor working in GWT 
2.3??

Thanks, 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to