Before value hasn't been set into to OverlayModel,if I did:
"Double.toString(overlayModel.getSalary())", a compilation error:""
Something other than a double was returned from JSNI method.....': JS
value of type undefined, expected double" will be thrown out.The
question is why gwt don't return default value(zero ) directly but
"Something" or "JS value of type undefined".How can I hand this
undefined type?
use if(..){} to check?If so,code will be verbose.
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment