Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Strange 'super' field

    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:
    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; 
            }
    Before the update, I did not have to check on type == null, it never was.

    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}
    This field seems unexpected and bizare. What is it?

    thanks

    #2
    Turns out ds.getFields().length is always 1 for all my datasources.
    Reverted back to SmartGWT EE 2.3 official release and there the problem doesn't exist (ds.getFields().length > 1).
    Same problem with the 08/09/2010 build.
    Last edited by levi; 8 Sep 2010, 22:25.

    Comment


      #3
      Seems to be fixed in 10/09 build. Thanks.

      Comment

      Working...
      X