Announcement

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

    item1.setValue(item2.getValue()) doesn't work anymore for Linux

    Hi guys,

    SmartGWT: PE 3.1p.2013-01-31
    GWT: 2.4.0
    OS: Linux
    Browser: any

    item1.setValue(item2.getValue()) ends up with something like:
    Code:
    item1:{
                "0":"E",
                "1":"U",
                "2":"R",
               cM:{
                    "1":1,
                    "372":1,
                    "375":1,
                    "379":1
                }
            }
    See http://forums.smartclient.com/showthread.php?t=19443.

    Problem is that SmartGWT has toString() invocation inside of setValue method:
    Code:
    public void setValue(Object value) {
            if (value == null) {
                doSetValue(null);
            } else if (value instanceof CharSequence || value instanceof Character) {
                setValue(value.toString());
            } else if (value instanceof Number) {
    ...
    Workaround: item1.setValue((String)item2.getValue());

    The problem is insane because it happens only on our Linux integration servers and not locally on Windows machines.

    please fix ASAP. Thanks.

    Cheers,
    Alexey

    #2
    We'll rearrange the code to avoid this, but note, the core GWT bug that's responsible was fixed as of GWT 2.5. That's probably the actual difference between your Linux and Windows deployments.

    Comment


      #3
      Originally posted by Isomorphic View Post
      We'll rearrange the code to avoid this, but note, the core GWT bug that's responsible was fixed as of GWT 2.5.
      Thanks!
      Originally posted by Isomorphic View Post
      That's probably the actual difference between your Linux and Windows deployments.
      On both sides is GWT 2.4.0.

      Comment

      Working...
      X