Hi,
Method add(com.smartgwt.client.data.Record) in class com.smartgwt.client.data.RecordList cannot work:
JSNI method '@com.smartgwt.client.data.RecordList::add(Lcom/smartgwt/client/data/Record;)' returned a value of type JavaScript object(626) but was declared void; it should not have returned a value at all
It really has return in JS:
Regards,
Gleb
Method add(com.smartgwt.client.data.Record) in class com.smartgwt.client.data.RecordList cannot work:
JSNI method '@com.smartgwt.client.data.RecordList::add(Lcom/smartgwt/client/data/Record;)' returned a value of type JavaScript object(626) but was declared void; it should not have returned a value at all
It really has return in JS:
Code:
/**
* Add an object to this list, at the end
* @param record object to add
*
*/
public native void add(Record record) /*-{
var self = this.@com.smartgwt.client.core.BaseClass::getOrCreateJsObj()();
return self.add(record.@com.smartgwt.client.data.Record::getJsObj()());
}-*/;
Gleb
Comment