Announcement

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

    Why forms' items dont have name property

    Hi,
    I'm using Calendar by extending eventEditor, but i cant bind other items to him.
    I checked items and here i have
    [[ComboBoxItem ID:isc_ComboBoxItem_40], [SelectItem ID:isc_SelectItem_38], [TextItem ID:isc_TextItem_23], [TextItem ID:isc_TextItem_41], [DateItem ID:isc_DateItem_42], [TimeItem ID:isc_TimeItem_44], [DateItem ID:isc_DateItem_45], [SelectItem ID:isc_SelectItem_37], [TimeItem ID:isc_TimeItem_47], [TimeItem ID:isc_TimeItem_48], [SelectItem ID:isc_SelectItem_36], [SelectItem ID:isc_SelectItem_34], [SelectItem ID:isc_SelectItem_33], [SelectItem ID:isc_SelectItem_32], [SelectItem ID:isc_SelectItem_49 name:startHours], [SelectItem ID:isc_SelectItem_50 name:startMinutes], [SelectItem ID:isc_SelectItem_51 name:startAMPM], [BlurbItem ID:isc_BlurbItem_35 name:invalidDate], [SelectItem ID:isc_SelectItem_52 name:endHours], [SelectItem ID:isc_SelectItem_53 name:endMinutes], [SelectItem ID:isc_SelectItem_54 name:endAMPM], [TextItem ID:isc_TextItem_55 name:name], [TextAreaItem ID:isc_TextAreaItem_39 name:description]]

    Look that only default fields have name properties.
    On Developer Console i have the same:

    10:37:55.068:WARN:DynamicForm:myCalendar_eventEditor:[Class ComboBoxItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
    10:37:55.083:WARN:DynamicForm:myCalendar_eventEditor:[Class SelectItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
    10:37:55.083:WARN:DynamicForm:myCalendar_eventEditor:[Class TextItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
    10:37:55.083:WARN:DynamicForm:myCalendar_eventEditor:[Class TextItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
    10:37:55.083:WARN:DynamicForm:myCalendar_eventEditor:[Class DateItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
    10:37:55.083:WARN:DynamicForm:myCalendar_eventEditor:[Class TimeItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
    10:37:55.083:WARN:DynamicForm:myCalendar_eventEditor:[Class DateItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
    10:37:55.083:WARN:DynamicForm:myCalendar_eventEditor:[Class SelectItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
    10:37:55.083:WARN:DynamicForm:myCalendar_eventEditor:[Class TimeItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
    10:37:55.083:WARN:DynamicForm:myCalendar_eventEditor:[Class TimeItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
    10:37:55.083:WARN:DynamicForm:myCalendar_eventEditor:[Class SelectItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
    10:37:55.083:WARN:DynamicForm:myCalendar_eventEditor:[Class SelectItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
    10:37:55.083:WARN:DynamicForm:myCalendar_eventEditor:[Class SelectItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
    10:37:55.083:WARN:DynamicForm:myCalendar_eventEditor:[Class SelectItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.



    My question is, where is the problem?

    #2
    Can you post the relevant code?

    Edit : nevermind, I am able to reproduce this. I'll look into it.

    Comment


      #3
      Fixed in SVN. I also enabled the Custom Event Editing sample in Showcase.

      All :
      If you've had issues with custom event editing in the past, please try against SVN. This should now be fully resolved.

      Thanks,
      Sanjiv
      Last edited by sjivan; 30 Mar 2009, 02:20.

      Comment


        #4
        Hi,
        I'm having same issue with SmartGWT 2.4 and 2.5.
        Any custom field - e.g.:
        Code:
                TextItem descItem = new TextItem("description", "Description");  
                descItem.setAttribute("type", "textArea");
        
        	SelectItem typeItem = new SelectItem(CalendarDS.EVENT_TYPE, "Type");
        	typeItem.setValueMap(IvRoundType.getValueArray());
        
        
        ....
        
        	calendar.setEventEditorFields(descItem, typeItem);
        - will lead to following:
        Code:
        [ERROR] [com.episteme.project.rightmatch.gui.Application] - 18:44:32.189:MUP9:WARN:DynamicForm:isc_Calendar_0_eventEditor:[Class TextItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
        [ERROR] [com.episteme.project.rightmatch.gui.Application] - 18:44:32.191:MUP9:WARN:DynamicForm:isc_Calendar_0_eventEditor:[Class SelectItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
        This means not only that value of custom fields won't be saved, but also existing default fields can't be customized as the name attribute gets lost (see "description" field above).

        Thanks for help,
        Regards
        Miro
        Last edited by mirek; 7 Aug 2011, 01:56.

        Comment


          #5
          This has already been resolved (see above). If you think it can still happen, please show a minimal, runnable test case.

          Comment


            #6
            SmartGWT:2.5
            GWT SDK: 2.3
            JDK: 1.6.0_25
            Browser:Chrome 10.0.648.205

            When I run showcase CustomEventCalendarSample by 'ant hosted':
            00:02:00.859 [ERROR] 00:06:28.555:MUP7:WARN:DynamicForm:isc_DynamicForm_2:[Class SelectItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
            com.smartgwt.client.core.JsObject$SGWT_WARN: 00:06:28.555:MUP7:WARN:DynamicForm:isc_DynamicForm_2:[Class SelectItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
            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: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(Thread.java:662)

            The event dialog and event editor are all misplaced.
            Attached Files
            Last edited by abent; 9 Aug 2011, 09:06.

            Comment


              #7
              I test CustomEventCalendarSample at
              local 'ant hosted' showcase:(http://127.0.0.1:8888/index.html?gwt.codesvr=127.0.0.1:9997#custom_editing_calendar_category)
              and web showcase:(http://www.smartclient.com/smartgwt/showcase/#custom_editing_calendar_category) in various browser:

              IE8:
              local: not found Element(showcase.nocache.js Line:9 Char:670)
              web: OK

              Firefox:
              local: 0:35:09.266 [ERROR] 00:39:36.968:WARN:Tree:isc_Tree_0:Adding node to tree with id property set to:grid_exp_filter_new. A node with this ID is already present in this Tree - that node will be replaced. Note that this warning may be disabled by setting the reportCollisions attribute to false.
              com.smartgwt.client.core.JsObject$SGWT_WARN: 00:39:36.968:WARN:Tree:isc_Tree_0:Adding node to tree with id property set to:grid_exp_filter_new. A node with this ID is already present in this Tree - that node will be replaced. Note that this warning may be disabled by setting the reportCollisions attribute to false.
              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: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.invokeNativeObject(ModuleSpace.java:269)
              at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
              at com.smartgwt.client.widgets.tree.Tree.create(Tree.java)
              at com.smartgwt.client.core.BaseClass.getOrCreateJsObj(BaseClass.java:112)
              at com.smartgwt.client.widgets.tree.TreeGrid.setData(TreeGrid.java:686)
              at com.smartgwt.sample.showcase.client.SideNavTree.<init>(SideNavTree.java:62)
              at com.smartgwt.sample.showcase.client.Showcase.onModuleLoad(Showcase.java:154)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
              at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:193)
              at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510)
              at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
              at java.lang.Thread.run(Thread.java:662)
              web: OK

              Chrome 12.0.742.122:
              local:00:43:01.203 [ERROR] 00:47:28.916:MUP1:WARN:DynamicForm:isc_DynamicForm_2:[Class SelectItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
              com.smartgwt.client.core.JsObject$SGWT_WARN: 00:47:28.916:MUP1:WARN:DynamicForm:isc_DynamicForm_2:[Class SelectItem] form item defined with no 'name' property - Value will not be saved. To explicitly exclude a form item from the set of values to be saved, set 'shouldSaveValue' to false for this item.
              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: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(Thread.java:662)
              Web: OK

              Chrome 10.0.648.205:
              local: like Chrome 12.0
              Web: OK

              Comment


                #8
                As Abent already posted above - I am also able to reproduce this issue just by using CustomEventCalendarSample.
                Tested with Gwt 2.3, Smartgwt 2.4 and 2.5, IE 8.0.6, Chrome 13.0.782.107 m. Note I tested it only in hosted mode though.

                Misplaced dialogue/editor is just a consequence of the fact that name property is missing - hence overriding of default items is not possible.

                Thanks for fixing this.

                Comment


                  #9
                  The Tree node collision warnings are safe to ignore - we'll be resolving these in the near future.

                  Google Chrome has some known issues in development mode (see the FAQ on this).
                  The behavior on Chrome in development mode whereby the field names are not being correctly populated is almost certainly a result of these known issues. Try running in production mode - if you continue to see similar bad behavior on Chrome let us know and we'll take a look.

                  This leaves the issue with IE8 "not found Element(showcase.nocache.js Line:9 Char:670)"

                  We're unable to reproduce this on Windows XP / IE8 or Windows 7 / IE9 [running in either IE8 or IE9 browser mode]. Can you let us know exactly what platform (OS plus browser version) you're seeing this bug on, exact steps to reproduce, and how you're running the showcase ('ant hosted' from command line vs Eclipse plugin, version of GWT, etc)
                  Also out of curiosity, does the bug occur only in hosted / dev mode, or do you also see it in compiled mode?

                  Thanks
                  Isomorphic Software

                  Comment


                    #10
                    My environment is:
                    WindowsXP (v5.1[2600.xpsp_sp3_qfe.101209-1646:Service Pack 3])
                    IE8 (v8.0.6001.18702)
                    ant (1.7.1)
                    JDK (jdk1.6.0_24)

                    Step:
                    1. Download SmartGwt2.5 LGPL zip package;
                    2.Unzip in a folder;
                    3.Setup system environment variables,include 'JAVA_HOME','ANT_HOME','GWT_HOME','Path';
                    4.Run 'ant hosted' from command line in above folder;
                    5.Navigate to 'CustomEventCalendarSample' in IE8, then you can see the ' not found Element' error.

                    Comment


                      #11
                      Finally got around this - it was not reproducible with your exact setup either. Sorry, we're not sure how you've caused this problem, but you might try upgrading GWT (it might be corrupted in some way).

                      Comment

                      Working...
                      X