• Dynamic Tabs error

    By Azamat Smagulov 1 decade ago

    I already had a thread on this error since last year, but it seems to be lost.

     

     

    It's a combination of several errors (RTE control conflicting with dynamic tab control which was fixed and at least two different errors with dynamic tab control itself).

    I made a sample nsf:

    http://www.mediafire.com/?wz0zulu55d0nvzz

    http://95.57.119.45/tmp_tst/dynamic%20tabs%20testcase.nsf

    To reproduce the error, open testcase.xsp and create a few tabs by . Then wait a few minutes. Try to 

    Can anyone at least confirm that the error exists?

    • I think that this may be a known issue?

      By Paul Hannan 1 decade ago

      Have you tried this on Domino 9.0? We've resolved a similar issue in 9.0 detailed by the following

       

      The workaround provided in the original SPR is from a user on the openNTF site:

      http://www.openntf.org/internal/home.nsf/response.xsp?action=openDocument&documentId=1BCFCBAE02F4E4B48625795600550F24&MainID=B1FF67BF34DA74E486257953003964A2

      In the XPage source, on the same page as the rich text control, add the following control:

       

       

      <xp:scriptBlock>

       

       

      <xp:this.value>

      dojo.require('ibm.xsp.widget.layout.xspCKEditor');

      /**

      * Solves k.contentWindow is null error in Rich text CKEditor.

      * Problem was appearing when user did partial refresh on tab with a rich text field.

      */

      ibm.xsp.widget.layout.CKEditorWrapper.prototype.destroy = function(){

      //console.log('Destroying rt editor ' + this.id);

       

      // destroys ckeditor but without html update

      CKEDITOR.instances[this.domNode.id].destroy(true/*No editor html update*/);

       

      // delegate rest of the action to dijit

      dijit._WidgetBase.prototype.destroy.apply(this, arguments);

      }

      ]]>

       

       

      xp:this.value>

       

       

      xp:scriptBlock>