Announcement

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

    Multiple custom components doesn't work!?

    I have a problem with custom components in a tree grid:
    if the tree has more than 1 node with a custom component, e.g. selection item, collapsing the node and expanding it again doesn't work! If I create the tree and its nodes and expand them all (openAll) everything is ok. But if I collapse the node and then expand it again, only the 1st node with its component is shown and I get several exceptions.

    When I collapse the node I get the following exception for the 2nd node:
    Code:
    00:00:00,001 [ERROR] 11:00:18.019:TMR8:WARN:DynamicForm:Selection12:ignoring bad or negative top: NaN Class.getStackTrace(_1=>undef, _2=>undef, _3=>undef, _4=>undef) Canvas.getDelta(_1=>"top", _2=>NaN, _3=>59) Canvas.moveTo(_1=>616, _2=>NaN, _3=>undef, _4=>undef) [c]Canvas.snapToEdge(_1=>Array[4], _2=>"L", _3=>[DynamicForm ID:Selection12], _4=>"L", _5=>undef) GridRenderer.placeEmbeddedComponent(_1=>[DynamicForm ID:Selection12]) GridRenderer.$29d() GridRenderer.modifyContent() Canvas.$ra() Canvas.redraw(_1=>"initializing animated hide row", undef, undef, undef, undef, undef, undef, undef) Class.invokeSuper(_1=>[Class GridRenderer], _2=>"redraw", _3=>"initializing animated hide row", _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef) GridRenderer.redraw(_1=>"initializing animated hide row", _2=>undef, _3=>undef, _4=>undef, undef, undef, undef, undef) ** recursed on Class.invokeSuper
    com.smartgwt.client.core.JsObject$SGWT_WARN: 11:00:18.019:TMR8:WARN:DynamicForm:Selection12:ignoring bad or negative top: NaN
         Class.getStackTrace(_1=>undef,  _2=>undef,  _3=>undef,  _4=>undef)
        Canvas.getDelta(_1=>"top",  _2=>NaN,  _3=>59)
        Canvas.moveTo(_1=>616,  _2=>NaN,  _3=>undef,  _4=>undef)
        [c]Canvas.snapToEdge(_1=>Array[4],  _2=>"L",  _3=>[DynamicForm ID:Selection12],  _4=>"L",  _5=>undef)
        GridRenderer.placeEmbeddedComponent(_1=>[DynamicForm ID:Selection12])
        GridRenderer.$29d()
        GridRenderer.modifyContent()
        Canvas.$ra()
        Canvas.redraw(_1=>"initializing animated hide row", undef, undef, undef, undef, undef, undef, undef)
        Class.invokeSuper(_1=>[Class GridRenderer],  _2=>"redraw",  _3=>"initializing animated hide row",  _4=>undef,  _5=>undef,  _6=>undef,  _7=>undef,  _8=>undef,  _9=>undef,  _10=>undef)
        GridRenderer.redraw(_1=>"initializing animated hide row",  _2=>undef,  _3=>undef,  _4=>undef, undef, undef, undef, undef)
        ** recursed on Class.invokeSuper
     	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
     	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
     	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
     	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
     	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
     	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
     	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
     	at java.lang.Thread.run(Thread.java:662)
    When I expand the node I get the above again and this:
    Code:
    00:02:47,219 [ERROR] 11:03:05.239:RDQ5:WARN:Log:TypeError: _14 is null
     GridRenderer.setRowHeight(_1=>2, _2=>22, _3=>{Obj})
     GridRenderer.placeEmbeddedComponent(_1=>{Obj})
     GridRenderer._placeEmbeddedComponents()
     GridRenderer.modifyContent()
     Canvas._updateHTML()
     Canvas.redraw(_1=>false, undefined=>undef, undefined=>undef, undefined=>undef, undefined=>undef, undefined=>undef, undefined=>undef, undefined=>undef)
     Class.invokeSuper(_1=>{Obj}, _2=>"redraw", _3=>false, _4=>undef, _5=>undef, _6=>undef)
     GridRenderer.redraw(false, undef, undef, undef, undef, undef, undef, undef)
     Class.invokeSuper(_1=>null, _2=>"redraw", _3=>false, _4=>undef, _5=>undef, _6=>undef)
     GridBody.redraw(false)
     [c]Canvas.clearRedrawQueue()
     [c]Class.fireCallback(_1=>{Obj}, _2=>undef, _3=>[object Array], _4=>{Obj}, _5=>true)
     Timer._fireTimeout("$ir165")
     unnamed()
     unnamed() 
     
    com.smartgwt.client.core.JsObject$SGWT_WARN: 11:03:05.239:RDQ5:WARN:Log:TypeError: _14 is null
         GridRenderer.setRowHeight(_1=>2,  _2=>22,  _3=>{Obj})
         GridRenderer.placeEmbeddedComponent(_1=>{Obj})
         GridRenderer._placeEmbeddedComponents()
         GridRenderer.modifyContent()
         Canvas._updateHTML()
         Canvas.redraw(_1=>false, undefined=>undef, undefined=>undef, undefined=>undef, undefined=>undef, undefined=>undef, undefined=>undef, undefined=>undef)
         Class.invokeSuper(_1=>{Obj},  _2=>"redraw",  _3=>false,  _4=>undef,  _5=>undef,  _6=>undef)
         GridRenderer.redraw(false, undef, undef, undef, undef, undef, undef, undef)
         Class.invokeSuper(_1=>null,  _2=>"redraw",  _3=>false,  _4=>undef,  _5=>undef,  _6=>undef)
         GridBody.redraw(false)
         [c]Canvas.clearRedrawQueue()
         [c]Class.fireCallback(_1=>{Obj},  _2=>undef,  _3=>[object Array],  _4=>{Obj},  _5=>true)
         Timer._fireTimeout("$ir165")
         unnamed()
         unnamed()
    
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
     	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
     	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
     	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
     	at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
     	at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
     	at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
     	at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
     	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
     	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
     	at java.lang.Thread.run(Thread.java:662)
    Attached is an example which demonstrates this behaviour. It works fine if only one node with a custom component is attached.

    I'm using GWT 2.1, SmartGWT2.3, Netbean 6.9.1, Firefox 3.6.12
    Attached Files

    #2
    Unable to reproduce using latest build. It must have been fixed during development. Please pick up the latest build from http://www.smartclient.com/builds.

    Sanjiv

    Comment


      #3
      Thanx Sanjiv, the latest build solves this problem.

      Comment

      Working...
      X