Announcement

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

    TextItem.getType() is always NULL in SmartGWT 2.4

    In the new SmartGWT 2.4, there seems to be a problem with the TextItem getType() method, it returns NULL.
    We use 'SC_SNAPSHOT-2011-01-05/PowerEdition Deployment 2011-01-05'

    Looking at the underlying code, the problem seems to be a mixup between the 'editorType' and 'type' attributes.

    1) Constructor in TextItem:

    public TextItem(){
    setAttribute("editorType", "TextItem");
    }

    2) getType() method in FormItem:

    public String getType() {
    return getAttribute("type");
    }

    Was this intended?

    #2
    There were intentional changes in this area related to databinding.

    What were you using the getType() API for? What it will generally return is the data type. A FormItem is not required to have a data type - it can validly be null.

    Comment

    Working...
    X