Hi,
SmartClient Version: SC_SNAPSHOT-2010-09-07/EVAL Deployment
after upgrading SmartGWT EE 2.3 to this version,
I got a nullpointer on fieldName.
Inspecting the cause, I now see a strange field when traversing trough all DataSourceFields and also on the FormItem fields on a form via getFields():
This datasource:
Before the update, I did not have to check on type == null, it never was.
which gives this output:
This field seems unexpected and bizare. What is it?
thanks
SmartClient Version: SC_SNAPSHOT-2010-09-07/EVAL Deployment
after upgrading SmartGWT EE 2.3 to this version,
I got a nullpointer on fieldName.
Inspecting the cause, I now see a strange field when traversing trough all DataSourceFields and also on the FormItem fields on a form via getFields():
This datasource:
Code:
<DataSource ID="biSessDTO" dropExtraFields="true">
<fields>
<field name="bis" type="238" javaClass="zzz.dto.bi.biDTO" multiple="true" />
<field name="texts" type="372" javaClass="zzz.dto.document.TextDTO" multiple="true" />
</fields>
<serverObject ID="biSessStore" lookupStyle="new" className="zzz.server.stores.bi.biSessStore"/>
<operationBindings>
<binding operationId="IbiOutpost.validatebi" operationType="custom" serverMethod="validatebi"/>
<binding operationId="IbiOutpost.cancelbi" operationType="custom" serverMethod="cancelbi"/>
<binding operationId="IbiOutpost.generateNewInstance" operationType="fetch" serverMethod="generateNewInstance"/>
</operationBindings>
</DataSource>
Code:
for (DataSourceField field : ds.getFields()) {
String type = field.getAttributeAsString("type");
if (type == null) {
GWT.log("Field " + field.getName()+" has no type defined!");
SC.logEcho(field.getJsObj());
continue;
}
which gives this output:
Code:
[20100908 12:46:04] Field null has no type defined!
[20100908 12:46:04] 12:46:04.066:XRP4:WARN:Log:{
billingItems: Obj{name:billingItems},
texts: Obj{name:texts},
__gwt_ObjectId: 2048}
thanks
Comment