viktorthang / mgwt

Automatically exported from code.google.com/p/mgwt
Other
0 stars 0 forks source link

MDatebox.setValue() does not accept null values #329

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a MDatebox instance
2. instance.setValue(null)

What is the expected output? What do you see instead?
I expect it to clear the box but it throws an exception at 

    at Unknown.JavaScriptException_0(JavaScriptException.java:107)
    at Unknown.caught_0(Exceptions.java:29)
    at Unknown.$getTimezoneOffset_0(Date.java:165)
    at Unknown.$format_0(DateTimeFormat.java:787)
    at Unknown.$format(DateTimeFormat.java:746)
    at Unknown.$render_19(MDateBox.java:97)
    at Unknown.render_19(MDateBox.java:96)
    at Unknown.$setValue_30(ValueBoxBase.java:394)
    at Unknown.$setValue_35(MValueBoxBase.java:495)
    at Unknown.setValue_27(MValueBoxBase.java:494)

What version of the product are you using? On what operating system?
2.5.1.

Please provide any additional information below.

To work it around, just to override render method and control null values.

Original issue reported on code.google.com by lunarjchav@gmail.com on 19 May 2014 at 12:02

GoogleCodeExporter commented 8 years ago
mgwt version is 1.1.2 (sorry, I wrote gwt version)

Original comment by lunarjchav@gmail.com on 19 May 2014 at 12:03

GoogleCodeExporter commented 8 years ago
This issue was closed by revision c905f420046d.

Original comment by katharin...@gmail.com on 13 Jun 2014 at 10:23

GoogleCodeExporter commented 8 years ago

Original comment by kurka.da...@gmail.com on 13 Jun 2014 at 10:30