Announcement

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

  • FitzChivalry
    replied
    In case anyone else runs into this symptom, I figured I'd share my three-hours-of-hair-pulling error... if you don't have "eventId" as the name of the id, you'll get the same behavior on the second and later events on the calendar (oddly, the first one displays okay).

    So, check to make sure your XML tag is eventId!

    Leave a comment:


  • ssieb
    replied
    Maybe something has changed. Does that come back to your code? You could try doing a full recompile, maybe clear out the compiled files from the war directory first.

    Leave a comment:


  • luis51db
    replied
    Originally posted by ssieb
    If you unzip the the file you downloaded, there are two jar files.
    You don't mention your development environment, but with Eclipse I just remove the old jars from the build path and add the new ones. You also don't mention what kind of errors you get, so I have no way of helping you more.

    Thanks for your help, I'm new in this and I´m pretty lost with this error, let mee explain what I have,

    I set up my development environment with eclipse, I'm using smartgwt 2.5 and I´m getting the problem with the duplicated events with one of them in the upper left corner, now when I download the nightly version for 2.5 in the November 15 link everything runs correctly but I still have the problem with the event in the corner, when I donwload the 3.0 version for the same date and replace the jar file and start getting an error in a form where I perform a Login process the error I receive is the following it occur when I type something in a TextItem of a form, so I think is some incompatibility problem, but maybe is something I´m doing wrong


    10:20:23.973 [ERROR] [turnosonline] 10:20:23.969:INP1:WARN:Log:TypeError: Object [Class Validator] has no method 'getValidatorType'
    unnamed() @
    Canvas.validateField() @ turnosonline/sc/modules/ISC_Core.js:3851:83
    Canvas.validateFieldAndDependencies() @ turnosonline/sc/modules/ISC_Core.js:3843:196
    FormItem.handleChange() @ turnosonline/sc/modules/ISC_Forms.js:1430:160
    FormItem.storeValue() @ turnosonline/sc/modules/ISC_Forms.js:1341:13
    FormItem._updateValue() @ turnosonline/sc/modules/ISC_Forms.js:1338:43
    FormItem.updateValue() @ turnosonline/sc/modules/ISC_Forms.js:1336:156
    FormItem._handleInput() @ turnosonline/sc/modules/ISC_Forms.js:1592:170
    unnamed() @ TurnosOnLine.html?gwt.codesvr=127.0.0.1:9997:1:156
    unnamed() @ TurnosOnLine.html?gwt.codesvr=127.0.0.1:9997:2:4


    com.smartgwt.client.core.JsObject$SGWT_WARN: 10:20:23.969:INP1:WARN:Log:TypeError: Object [Class Validator] has no method 'getValidatorType'
    unnamed() @
    Canvas.validateField() @ turnosonline/sc/modules/ISC_Core.js:3851:83
    Canvas.validateFieldAndDependencies() @ turnosonline/sc/modules/ISC_Core.js:3843:196
    FormItem.handleChange() @ turnosonline/sc/modules/ISC_Forms.js:1430:160
    FormItem.storeValue() @ turnosonline/sc/modules/ISC_Forms.js:1341:13
    FormItem._updateValue() @ turnosonline/sc/modules/ISC_Forms.js:1338:43
    FormItem.updateValue() @ turnosonline/sc/modules/ISC_Forms.js:1336:156
    FormItem._handleInput() @ turnosonline/sc/modules/ISC_Forms.js:1592:170
    unnamed() @ TurnosOnLine.html?gwt.codesvr=127.0.0.1:9997:1:156
    unnamed() @ TurnosOnLine.html?gwt.codesvr=127.0.0.1:9997:2:4

    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.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)

    Thanks.

    Leave a comment:


  • ssieb
    replied
    If you unzip the the file you downloaded, there are two jar files.
    You don't mention your development environment, but with Eclipse I just remove the old jars from the build path and add the new ones. You also don't mention what kind of errors you get, so I have no way of helping you more.

    Leave a comment:


  • luis51db
    replied
    Originally posted by Isomorphic
    Don't try to replace individual .jars, use the installation instructions.
    sorry, can you point me where I can find the instructions, I look for them but I couldn´t find it. Thanks.

    Leave a comment:


  • Isomorphic
    replied
    Don't try to replace individual .jars, use the installation instructions.

    Leave a comment:


  • luis51db
    replied
    I have the same problem, but I'm working with SmartGWT 2.5, and when I put one of the 3.0 nightly builds, it gives me a lot of different errors I wonder which jar file should I download with this bug fixed.

    Thanks in advance.

    Leave a comment:


  • gauravd
    replied
    Thanks ssieb and Isomorphic for your help.
    Isomorphic, your solution worked for me ... thanks. I think it would be good to have default blank datasource associated with every created data bound component. many user might use data bound components to add/edit data without initial fetch ... very possible at least in case of calendar.

    Isomorphic, may I also bring your attention to my below query (again related to calender). It has been there for few days without anyone responding to it. Its also kind of urgent for me.
    http://forums.smartclient.com/showthread.php?t=19527

    I sincerely appreciate your help.

    Gaurav

    Leave a comment:


  • Isomorphic
    replied
    Technically, this is a usage error: the Calendar hasn't been allowed to fetch and hasn't been given a dataset, so it has nowhere to put the data. You can either call fetchData() to cause the Calendar to fetch, or if you don't want it to show existing saved events (somewhat strange) you can explicitly provide it an empty ResultSet:

    Code:
        isc.Calendar.create({
            ID: "app_admin_calendar", 
            height:"100%",
            width:"100%",
            dataSource: app_admin_calendar_DS,
            data: isc.ResultSet.create({ 
                  dataSource: app_admin_calendar_DS, 
                  initialData:[] 
            })
        });
    However, it would be reasonable for the Calendar to automatically create an empty ResultSet when used this way, and we may enhance it to do so in the future.

    Leave a comment:


  • ssieb
    replied
    Then this is a different issue than what I had. Getting the data was never a problem. The only problem I had was that using addEvent to create new events caused the extra corner event. And that has been fixed now. Sorry, I don't have any other suggestions for your issue.

    Leave a comment:


  • gauravd
    replied
    Issue is still not fixed. I tried again on Firefox with nightly of 3rd Nov, still the calendar event is shown on top left corner. Good part it that now screen does not freeze.

    Attached is the latest snapshot with nightly of 3rd Nov. It also shows the JSON in response to add event.

    Please help.

    Below is the smartclient for calendar.
    Code:
        isc.RestDataSource.create({
            ID: "app_admin_calendar_DS",
            fields:[
                {name:"eventId", primaryKey: true, type: "sequence"},
                {name:"name"},
                {name:"description"},
                {name:"startDate", type: "datetime"},
                {name:"endDate", type: "datetime"}
            ],
            dataFormat:"json",
            addDataURL:"ajax/view/json/cal_event/add"
        });     
    
        isc.Calendar.create({
            ID: "app_admin_calendar", 
            height:"100%",
            width:"100%",
            dataSource: app_admin_calendar_DS
        });
    
    
        isc.VLayout.create({
            members:[
                "app_admin_calendar",
            ],
            height:"100%",
            width:"100%",
            ID:"app_admin_cal_top_section",
            autoDraw:true
        })
    Attached Files

    Leave a comment:


  • ssieb
    replied
    There's no separate version for chrome. I haven't tried it in chrome yet, I normally just use firefox. You could try clearing out the GWT caches to make sure it rebuilds with the new version.

    Leave a comment:


  • gauravd
    replied
    ssieb, with nightly fix, its working fine in firefox but still facing the earlier stated issue (event adds on top left corner and screen hangs) in Google Chrome (version 15.0.874.106 m)

    Is there separate fix for chrome?

    Gaurav

    Leave a comment:


  • gauravd
    replied
    Yeah we tested the nightly ... the issue is fixed in that.
    Thanks for your pointers.

    Gaurav

    Leave a comment:


  • ssieb
    replied
    I think it's just in that file. But it really depends on what version you have right now whether that file will be compatible or not. As in, if you're using 2.x now, it's almost certainly not. You're probably better off just to get the 3.0 nightly.

    Leave a comment:

Working...
X