Consider this code:
Code:
TextAreaItem area = new TextAreaItem();
area.setWidth(100);
area.setHeight("*");

try {
    GWT.log("width:" + area.getWidthAsString() + ", height: " + area.getHeightAsString());
} catch (Exception e) {
    SC.say("Another time, Highlander: " + e.toString());
}
It will throw ClassCastException. Looks like a bug?

(It works if you set the width with a String: area.setWidth("100"))

A kind of related thing that i write here to not spam too many threads in the forum :

there is a setHeight in CanvasItem, but not a SetWidth. So if you override them you have to return FormItem from the last one. Doesn't really matter, but just wanted to point it out for consistency.