Announcement

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

    issue in latest nightly: ToolbarItem, SectionItem

    the above mentioned classes throw errors or just don't appear in the latest nightly.

    #2
    Please post the entire information that you were requested including a testcase. What errors are you seeing?

    Comment


      #3
      Test code used:
      Code:
      package com.fileee.client;
      
      import java.util.ArrayList;
      
      import com.smartgwt.client.widgets.form.DynamicForm;
      import com.smartgwt.client.widgets.form.fields.ButtonItem;
      import com.smartgwt.client.widgets.form.fields.FormItem;
      import com.smartgwt.client.widgets.form.fields.SectionItem;
      import com.smartgwt.client.widgets.form.fields.TextItem;
      import com.smartgwt.client.widgets.layout.VLayout;
      
      public class TestClientMarius {
      
      
      	public void onModuleLoad() {
      
      		// HauptFrame
      		VLayout mainLayout = new VLayout();
      		mainLayout.addMember(getPropertyForm());
      		mainLayout.draw();
      	}
      	
      	private DynamicForm getPropertyForm() {
      
      		final DynamicForm propertyForm = new DynamicForm();
      		final TextItem titleItem = new TextItem("title");
      		
      
      
      		SectionItem senderSection = new SectionItem();
      		senderSection.setDefaultValue("section");
      		senderSection.setSectionExpanded(false);
      		senderSection.setItemIds("title");
      
      		ButtonItem saveButton = new ButtonItem("save");
      		
      		ArrayList<FormItem> fi = new ArrayList<FormItem>();
      		fi.add(titleItem);
      		fi.add(senderSection);
      		fi.add(saveButton);
      		propertyForm.setFields(fi.toArray(new FormItem[0]));
      		return propertyForm;
      	}
      
      }

      Exception:

      Code:
      [ERROR] com.google.gwt.core.client.JavaScriptException: (TypeError): this.canvas.setExpanded is not a function
      [ERROR]  fileName: http://127.0.0.1:8888/fileee/sc/modules/ISC_Forms.js
      [ERROR]  lineNumber: 2150
      [ERROR]  stack: isc_SectionItem_collapseSection()@http://127.0.0.1:8888/fileee/sc/modules/ISC_Forms.js:2150
      [ERROR] isc_DynamicForm__addItems([object Array],null,true,true)@http://127.0.0.1:8888/fileee/sc/modules/ISC_Forms.js:268
      [ERROR] isc_DynamicForm_setItems([object Array],true)@http://127.0.0.1:8888/fileee/sc/modules/ISC_Forms.js:253
      [ERROR] isc_DynamicForm_initWidget([object Object],(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0))@http://127.0.0.1:8888/fileee/sc/modules/ISC_Forms.js:240
      [ERROR] isc_Canvas_init([object Object],(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0))@http://127.0.0.1:8888/fileee/sc/modules/ISC_Core.js:1889
      [ERROR] isc_Class_completeCreation([object Object],(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0),(void 0))@http://127.0.0.1:8888/fileee/sc/modules/ISC_Core.js:335
      [ERROR] isc_c_Class_create([object Object])@http://127.0.0.1:8888/fileee/sc/modules/ISC_Core.js:205
      [ERROR] ()@http://127.0.0.1:8888:804
      [ERROR] connect("http://127.0.0.1:8888/fileee/index.html?gwt.codesvr=127.0.0.1:9997#TILES","n]CkW3@FG&?1Al>j","127.0.0.1:9997","fileee","2.1")@:0
      [ERROR] ((void 0),"fileee","http://127.0.0.1:8888/fileee/",0)@http://127.0.0.1:8888/fileee/hosted.html?fileee:281
      [ERROR] A()@http://127.0.0.1:8888/fileee/fileee.nocache.js:2
      [ERROR] (23)@http://127.0.0.1:8888/fileee/fileee.nocache.js:10
      [ERROR] 
      [ERROR] 	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237)
      [ERROR] 	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
      [ERROR] 	at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:552)
      [ERROR] 	at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
      [ERROR] 	at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
      [ERROR] 	at com.smartgwt.client.widgets.form.DynamicForm.create(DynamicForm.java)
      [ERROR] 	at com.smartgwt.client.widgets.BaseWidget.getOrCreateJsObj(BaseWidget.java:356)
      [ERROR] 	at com.smartgwt.client.widgets.layout.Layout.addMember(Layout.java:1071)
      [ERROR] 	at com.fileee.client.TestClientMarius.onModuleLoad(TestClientMarius.java:20)
      [ERROR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [ERROR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [ERROR] 	at java.lang.reflect.Method.invoke(Method.java:597)
      [ERROR] 	at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:397)
      [ERROR] 	at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:183)
      [ERROR] 	at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
      [ERROR] 	at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
      [ERROR] 	at java.lang.Thread.run(Thread.java:619)
      if you comment SenderSection out i get no error but also don't see the buttonItem.
      i used firefox 3.6.1 and the latest nightly.
      Last edited by xelibrety; 28 Sep 2010, 11:06.

      Comment


        #4
        I observe the same error on setExpanded for SectionItem from the last build date 9/29

        Comment


          #5
          any update?
          its pretty unsatisfying if you got no visible buttons in any DynamicForm.

          Comment


            #6
            Originally posted by xelibrety
            any update?
            its pretty unsatisfying if you got no visible buttons in any DynamicForm.
            I tried your testcase against the latest nightly and it works fine. If you're still seeing the problem then specify the precise build you're using.

            Sanjiv

            Comment


              #7
              problem solved!

              thanks a lot

              Comment

              Working...
              X