Announcement

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

    Exception when adding a RichTextItem to a dynamic form in a TabSet

    Hi

    I am using the SmartGWT 2.4 version.

    I am adding a RichTextItem into a dynamic Form which is placed inside a tab set. In the console I am getting an exception as shown below
    Also, the RichTextItem is not displayed properly. (as shown in attachment)
    Has someone encountered this problem?


    Code:
    com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot call method 'create' of undefined
     stack: TypeError: Cannot call method 'create' of undefined
        at [object Object].<anonymous> (unknown source)
        at __gwt_jsInvoke (http://127.0.0.1:8888/com.userfacts.customerweb.CustomerWeb/hosted.html?com_userfacts_customerweb_CustomerWeb:76:35)
        at eval at <anonymous> (http://127.0.0.1:8888/com.userfacts.customerweb.CustomerWeb/hosted.html?com_userfacts_customerweb_CustomerWeb:54:12)
        at Object.<anonymous> (unknown source)
        at unknown source
        at __gwt_jsInvoke (http://127.0.0.1:8888/com.userfacts.customerweb.CustomerWeb/hosted.html?com_userfacts_customerweb_CustomerWeb:76:35)
        at eval at <anonymous> (http://127.0.0.1:8888/com.userfacts.customerweb.CustomerWeb/hosted.html?com_userfacts_customerweb_CustomerWeb:54:12)
        at Object.<anonymous> (unknown source)
        at Object.createCanvas (unknown source)
        at Object.isc_c_Class_fireCallback [as fireCallback] (http://127.0.0.1:8888/com.userfacts.customerweb.CustomerWeb/sc/modules/ISC_Core.js:294:49)
     type: non_object_property_call
     arguments: create,
     __gwt_ObjectId: 572
    	at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:237)
    	at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126)
    	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.google.gwt.core.client.impl.Impl.apply(Impl.java)
    	at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
    	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.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:157)
    	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:126)
    	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.setProperty(BaseWidget.java)
    	at com.smartgwt.client.widgets.BaseWidget.setAttribute(BaseWidget.java:628)
    	at com.smartgwt.client.widgets.form.DynamicForm.setFields(DynamicForm.java:2732)
    Also, this I get this warning in the GWT hosted mode console

    Code:
    00:11:02.366 [ERROR] 16:28:31.294:WARN:DynamicForm:csrvDetailView_tb_launch_form:$sq() attempting to set tab index adjacent to widget [RichTextCanvas ID:isc_RichTextItem_0$21b_editArea] with explicitly specified tabIndex [undefined]. This method can only manipulate widgets with auto-assigned tab indexes. 
    com.smartgwt.client.core.JsObject$SGWT_WARN: 16:28:31.294:WARN:DynamicForm:csrvDetailView_tb_launch_form:$sq() attempting to set tab index adjacent to widget [RichTextCanvas ID:isc_RichTextItem_0$21b_editArea] with explicitly specified tabIndex [undefined]. This method can only manipulate widgets with auto-assigned tab indexes.
    Attached Files

    #2
    Hi,

    Make sure your script import has '/isomorphic/system/modules/ISC_RichTextEditor.js' in it.

    Comment

    Working...
    X