Announcement

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

    #16
    Still no good. I did a recompile as well...:
    Code:
    16:49:19.027:WARN:DynamicForm:isc_DynamicForm_0:Problem initializing item: {width: 80,
    record: null,
    rowNum: 0,
    colNum: 2,
    name: "reportDate",
    valueMap: undef,
    valueIcons: undef,
    imageURLPrefix: undef,
    imageURLSuffix: undef,
    baseURL: undef,
    imgDir: undef,
    textAlign: "right",
    valueIconLeftPadding: 2,
    valueIconRightPadding: 2,
    autoCompleteCandidates: undef,
    uniqueMatch: undef,
    containerWidget: [GridBody ID:isc_OID_0filterEditor_body],
    grid: [RecordEditor ID:isc_OID_0filterEditor],
    handleChanged: [o]DateItem.handleChanged(),
    keyDown: anonymous(),
    inactiveEditorMouseDown: anonymous(),
    editorType: "MiniDateRangeItem",
    elementFocus: [o]DateItem.elementFocus(),
    canTabToIcons: false,
    focusInItem: [o]DateItem.focusInItem(),
    height: 22,
    allowEmptyValue: true,
    actOnKeypress: undef,
    changed: [a]DateItem.changed(),
    } - derived FormItem class is: MiniDateRangeItem.  Please make sure the relevant module is loaded
    16:49:19.058:WARN:Log:Error:
    	''undefined' is null or not an object'
    	in http://localhost:8080/SmartGWTTestCase.html
    	at line 442
        DynamicForm.setItemValues(_1=>Obj, _2=>false, _3=>true, _4=>Array[4])
        DynamicForm.$10l(_1=>Array[4], _2=>null, _3=>true, _4=>undef)
        DynamicForm.setItems(_1=>Array[4], _2=>undef)
        GridBody.draw(_1=>undef, _2=>undef, _3=>undef, _4=>undef)
        Canvas.drawChildren()
        Canvas.draw(_1=>undef, undef, undef, undef, undef, undef, undef, undef)
        Class.invokeSuper(_1=>[Class ListGrid], _2=>"draw", _3=>undef, _4=>undef, _5=>undef, _6=>undef, _7=>undef, _8=>undef, _9=>undef, _10=>undef)
        ListGrid.draw(_1=>undef, _2=>undef, _3=>undef, _4=>undef)
        ** recursed on Class.invokeSuper

    Comment


      #17
      Did you update the "tools" folder in SVN if you're building from SVN?

      Comment


        #18
        I'm just downloading the smartgwt.jar from http://www.smartclient.com/smartgwt/builds/latest/

        Comment


          #19
          Do a clean build and rerun. If you open the jar and look at the JS files you'll see that this class exists.

          Comment


            #20
            I'm still running into an issue. I deleted everything under my war directory, other than ds (which has my one .ds file), my CSS file, my index.html file, and WEB-INF. WEB-INF has iscTaglib.xml, web.xml, lib (which is empty except for gwt-servlet.jar) and classes (which has log4j...xml and server.properties).

            When I compile again, I still get the same error.

            Comment


              #21
              Post your gwt module file.

              Comment


                #22
                Perhaps it needs a reference in the SmartClientDebug.gwt.xml file?

                Comment


                  #23
                  Code:
                  <?xml version="1.0" encoding="UTF-8"?>
                  <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.1//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.1/distro-source/core/src/gwt-module.dtd">
                  <module rename-to='smartgwttestcase'>
                    <!-- Inherit the core Web Toolkit stuff.                        -->
                    <inherits name='com.google.gwt.user.User'/>
                  
                   <inherits name="com.smartgwtee.SmartGwtEE"/>
                   <inherits name="com.smartgwtee.tools.Tools"/>
                   <inherits name="com.smartgwt.tools.SmartGwtTools"/>
                  
                    <!-- Specify the app entry point class.                         -->
                    <entry-point class='com.smartgwt.client.SmartGWTTestCase'/>
                  </module>

                  Comment


                    #24
                    You're using SmartGwtEE so the JS files from the smartgwt.jar file you picked up are not going to be used. Try getting the latest SmartGwtEE build instead.

                    Sanjiv

                    Comment


                      #25
                      Is that JAR'd up somewhere? I don't see anything like http://www.smartclient.com/smartgwtee/builds/latest/

                      Comment


                        #26
                        Look for the section on nightly builds in the FAQ.

                        Comment


                          #27
                          Hi,
                          can you re-check this issue as I've noted this just as well in development mode with SmartGwtDebug.
                          Code:
                          	<!-- Inherit the SmartGWT Toolkit library configuration. -->
                          	<inherits name="com.smartgwt.debug.SmartGwtDebug" />
                          	<!-- The Developer console. -->
                          	<inherits name="com.smartgwt.tools.SmartGwtTools"/>
                          I've also checked the latest build:
                          get http://www.smartclient.com/smartgwt/...t/smartgwt.jar
                          unpack
                          search for MiniDateRangeItem
                          found only .class and .java

                          There is a DateRangeItem.js, no MiniDateRangeItem.js


                          Errors in development mode:
                          Code:
                          09:43:14.497:selectionchange1[E]:WARN:DynamicForm:isc_DynamicForm_2:
                          Problem initializing item: {width: 100, record: null, rowNum: 0, colNum: 3, name: "availableTo", valueMap: undef, 
                          valueIcons: undef, imageURLPrefix: undef, imageURLSuffix: undef, baseURL: undef, imgDir: undef, textAlign: "right", 
                          valueIconLeftPadding: 2, valueIconRightPadding: 2, _getAutoCompleteSetting: [o]TextItem._getAutoCompleteSetting(), 
                          autoCompleteCandidates: undef, uniqueMatch: undef, containerWidget: [GridBody ID:isc_SRAListGrid_0filterEditor_body], 
                          grid: [RecordEditor ID:isc_SRAListGrid_0filterEditor], handleChanged: [o]TextItem.handleChanged(), keyDown: anonymous(), 
                          inactiveEditorMouseDown: anonymous(), type: "date", editorType: "MiniDateRangeItem", elementFocus: [o]TextItem.elementFocus(), 
                          canTabToIcons: false, focusInItem: [o]TextItem.focusInItem(), height: 22, allowEmptyValue: true, actOnKeypress: undef, 
                          changed: [a]TextItem.changed(), _typeDefaultsAdded: true, _simpleType: Obj{name:date}, _normalDisplayFormatter: 
                          [a]ImgButton._normalDisplayFormatter(), validators: Array[1]}
                           - derived FormItem class is: MiniDateRangeItem.  Please make sure the relevant module is loaded
                          
                          
                           09:43:14.512:selectionchange1[E]:WARN:Log:Error:     ''undefined' is null or not an object'     
                           in sc/client/widgets/form/DynamicForm.js     at line 3703 
                              DynamicForm.setItemValues(values=>Obj,  onRedraw=>false,  initTime=>true,  items=>Array[4])     
                          	DynamicForm._addItems(newItems=>Array[4],  position=>null,  fromSetItems=>true,  firstInit=>undef)     
                          	DynamicForm.setItems(itemList=>Array[4],  firstInit=>undef)     
                          	GridBody.draw(a=>undef, b=>undef, c=>undef, d=>undef)     Canvas.drawChildren()     
                          	Canvas.draw(showing=>undef, undef, undef, undef, undef, undef, undef, undef)     
                          	Class.invokeSuper(clazz=>[Class ListGrid],  methodName=>"draw",  a=>undef, b=>undef, c=>undef, d=>undef, e=>undef, f=>undef, g=>undef, h=>undef)     
                          	ListGrid.draw(a=>undef, b=>undef, c=>undef, d=>undef)     ** recursed on Class.invokeSuper

                          note: to temp work around this issue, setShowFilterEditor(false) on the grid.
                          Last edited by levi; 2 Jul 2010, 00:41.

                          Comment


                            #28
                            MiniDateRangeItem is defined in DateRangeItem.js.

                            Comment


                              #29
                              Ok.
                              But what does the error above "derived FormItem class is: MiniDateRangeItem. Please make sure the relevant module is loaded" mean?

                              Do we need to do something special to get the MiniDateRangeItem loaded from DateRangeItem?

                              Comment


                                #30
                                No. This indicates stale code. DateRangeItem.js existed for a while before MiniDataRangeItem was implemented.

                                Comment

                                Working...
                                X