• Error: DWT.widget.DominoUI is not a constructor

    By Jose M Rodriguez 2 decades ago

    Hi, I can't make the new 0.3.0 release work, I'm getting the error:



    Error: DWT.widget.DominoUI is not a constructor

    Source File: http://<>?OpenView

    Line: 28



    In line 28 there is this code:

    var ViewTemplateDefault = new DWT.widget.DominoUI({outlineUrl: "($dwt.ViewAndFolderList)"});



    Any suggestion?

    José Manuel

    • remove 'widget'

      By Jack Ratcliff 2 decades ago

      Sorry about that. I updated the code in the dwt.SampleMain.html page but forgot the $$ViewTemplateDefault form.



      To fix, change the call to DominoUI from this:

      DWT.widget.DominoUI({…})



      To this:

      DWT.DominoUI({…});

      • Yeah, now it works!

        By Jose M Rodriguez 2 decades ago

        I'm really impressed,

        thank you very much,



        Jose M Rodriguez

      • By Genevieve Godbout 2 decades ago

        I also have another error when I test your code: Line 30 - 'YAHOO.ext.EventManager' is null or not an object



        Thanks for your help.

        Genevieve

        • Where is this happening?

          By Jack Ratcliff 2 decades ago

          Exactly where do you see this error? When loading an outline? a view?

          • When loading a view...

            By Genevieve Godbout 2 decades ago

            Thanks for your help.

            Genevieve

            • Change YAHOO.ext. to Ext.

              By Jack Ratcliff 2 decades ago

              Change YAHOO.ext. to just Ext.



              before:

              YAHOO.ext.EventManager.onDocumentReady(ViewTemplateDefault.init, ViewTemplateDefault, true);



              after:

              Ext.EventManager.onDocumentReady(ViewTemplateDefault.init, ViewTemplateDefault, true);

              • Thank you very much Jack, it is working now!

                By Genevieve Godbout 2 decades ago

                I will be able to do my tests now. Your application seems really cool. Thanks again.



                Genevieve

        • By Devendran C.M. 2 decades ago

          I too got the same error. Error console(firefox) : Yahoo.ext has no properties and the code line is give below



          YAHOO.ext.EventManager.onDocumentReady(ViewTemplateDefault.init, ViewTemplateDefault, true);