I'm trying to set programatically a null value in a FormItem (really an IntegerItem), sice I want to clear its actual value, whatever it is. I have the following code:
this:
and this:
But it always gets translated to this:
Which generates an exception, since null does not have methods. So, how can I clear the value of a FormItem element? Can I force it to have a null value in any way?
Code:
item.setValue((Integer)null);
Code:
Integer nulo = null; item.setValue(nulo);
Code:
private Integer getNull() { return null; } item.setValue(getNull());
Code:
2616 com_smartgwt_client_widgets_form_fields_FormItem_$setValue__Lcom_smartgwt_client_widgets_form_fields_FormItem_2I(alertItem, null.nullMethod());
Comment