I got a JavaScript Exception:
(com.google.gwt.core.client.JavaScriptException: (null): null) when I set the value for a HiddenItem with a Boolean value.
I've trace it to the: public void setValue(Object value) in the FormItem.class.
It seems that because there's no if() test for a Boolean instance for the value, and hence no type casting for Boolean, that generated the exception.
I solved the exception by casting the value to Boolean in my code:
setValue(((Boolean) overwrite).booleanValue());
I think that this type cast code should be part of the setValue() method in the FormItem class.
(com.google.gwt.core.client.JavaScriptException: (null): null) when I set the value for a HiddenItem with a Boolean value.
I've trace it to the: public void setValue(Object value) in the FormItem.class.
It seems that because there's no if() test for a Boolean instance for the value, and hence no type casting for Boolean, that generated the exception.
I solved the exception by casting the value to Boolean in my code:
setValue(((Boolean) overwrite).booleanValue());
I think that this type cast code should be part of the setValue() method in the FormItem class.
Comment