Announcement

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

    Problem with a setValue(Boolean) for a HiddenItem

    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.

    #2
    Fixed, thanks.

    Comment


      #3
      Hi Sanjiv

      When will you apply this change to the nightly builds ?

      Comment


        #4
        This should already be in the latest nightly build. Get it from here : http://smartclient.com/builds/

        Comment


          #5
          Hi Sanjiv,

          Exactly the same goes for java.lang.Long.

          Thank you,

          Neuman

          Comment


            #6
            Please try the latest build.

            Comment

            Working...
            X