Announcement

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

    3.1 markForDestroy with CanvsItem Issue

    1. SmartClient Version: SNAPSHOT_v8.3d_2012-07-18/LGPL Development Only (built 2012-07-18)

    2. Browser: FF 14.1

    I have issue when im trying to destroy DynamicForm that only include a Button on CanvasItem !

    Code:
     
                     VLayout layout = new VLayout();
    		
    		final DynamicForm form = new DynamicForm();
    		form.setSize("500", "500");
    		
    		Button myButton = new Button("Button On CanvasItem");
    		myButton.setWidth(150);
    		myButton.setID("myButtonID");
    		
    		Button deleteBTN = new Button("Destroy DynamicForm");
    		deleteBTN.setWidth(150);
    		deleteBTN.addClickHandler(new ClickHandler() {
    			@Override
    			public void onClick(ClickEvent event) {
    				form.markForDestroy();
    			}
    		});
    		
    		CanvasItem cavasItem = new CanvasItem();
    		cavasItem.setCanvas(myButton);
    		cavasItem.setShowTitle(false);
    		
    		form.setItems(cavasItem);
    		
    		layout.addMember(deleteBTN);
    		layout.addMember(form);
    		layout.draw();
    I just create Dynamic Form and add CanvasItem with Button , and i add use another Button to destroy Dynamic Form , and i have this error

    [ERROR] [sampleproject3_1] - 09:54:16.739:DSQ1:WARN:Log:method handleKeyUp on [Button ID:myButtonID] overridden with non-function: 'undefined'

    Code:
    09:54:16.745 [ERROR] [sampleproject3_1] 09:54:16.739:DSQ1:WARN:Log:method handleKeyUp on [Button ID:myButtonID] overridden with non-function: 'undefined'
    com.smartgwt.client.core.JsObject$SGWT_WARN: 09:54:16.739:DSQ1:WARN:Log:method handleKeyUp on [Button ID:myButtonID] overridden with non-function: 'undefined'
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        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:167)
        at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
        at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
        at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
        at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289)
        at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
        at com.smartgwt.client.widgets.BaseWidget.destroy(BaseWidget.java)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
        at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
        at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167)
        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(Unknown Source)
    its work fine on 3.0 , Any help please ?

    #2
    Can you let us know if this happens in the latest development builds - your build is more than a month old.

    Comment


      #3
      Use latest nightly build with same result

      Thank you fro your fast response , i use the latest nightly build SNAPSHOT_v8.3d_2012-08-27/LGPL Development Only (built 2012-08-27) and i still have the same same issue !

      Code:
      [ERROR] [sampleproject3_1] - 10:10:29.841:DSQ0:WARN:Log:method handleKeyUp on [Button ID:myButtonID] overridden with non-function: 'undefined'
      Any help Please

      Comment


        #4
        Any update on this please ?

        Comment


          #5
          The warning should not be generated in the case you're seeing because we're intentionally removing that function by design as part of object cleanup.

          We've made changes to remove the warning. It should be in the next nightly build.

          Comment


            #6
            Its working

            Thank you Isomorphic , its working fine with nightly build (11/9/2012 ) but i notice that you stop supporting setBackgroundRepeat method , what should i use instead of it ?

            Comment


              #7
              We don't know what you mean about setBackgroundRepeat - here are the docs for it.

              Comment

              Working...
              X