Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.1.1
    • Component/s: XHR/dhtml/Ajax
    • Labels:
      None
    • Environment:
      Own built jar using the latest version . jetty , linux , firefox1.5

      Description

      In a workable environment i inserted

      dojo.require("dojo.widget.RichText");

      and i got the error :

      DEBUG: failed loading /assets/static/dojo/src/widget/RichText.js with error: [SyntaxError: unterminated string literal, file: http://localhost:8080/assets/static/dojo/dojo.js, line: 95]
      FATAL exception raised: Could not load 'dojo.widget.RichText'; last tried '_package_.js'

      When i remove the dojo.require("dojo.widget.RichText"); everything works again.

      Since i'm using my own built jar i'm not certain is really a bug or a mistake i made.

        Activity

        Hide
        Alex Dragomir added a comment -

        yup , working like a charm!

        Show
        Alex Dragomir added a comment - yup , working like a charm!
        Hide
        Alex Dragomir added a comment -

        Nevermind , is probably my configuration messed up.

        Just in case , this is what i get :
        java.lang.NoSuchMethodError: org.apache.tapestry.spec.IComponentSpecification.addElementEventListener(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)V
        at org.apache.tapestry.annotations.EventListenerAnnotationWorker.peformEnhancement(EventListenerAnnotationWorker.java:73)

        Show
        Alex Dragomir added a comment - Nevermind , is probably my configuration messed up. Just in case , this is what i get : java.lang.NoSuchMethodError: org.apache.tapestry.spec.IComponentSpecification.addElementEventListener(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)V at org.apache.tapestry.annotations.EventListenerAnnotationWorker.peformEnhancement(EventListenerAnnotationWorker.java:73)
        Hide
        Alex Dragomir added a comment -

        I gave it a try but the snapshot is broken because ,if i did not miss something on the way , the ComponentSpecification is not in sync with the IComponentSpecification.

        Show
        Alex Dragomir added a comment - I gave it a try but the snapshot is broken because ,if i did not miss something on the way , the ComponentSpecification is not in sync with the IComponentSpecification.
        Hide
        Jesse Kuhnert added a comment -

        Fixed bug in dojo build. Should work in next deploy. (probably an hour)

        Show
        Jesse Kuhnert added a comment - Fixed bug in dojo build. Should work in next deploy. (probably an hour)
        Hide
        Jesse Kuhnert added a comment -

        Ok, I do see this now. Thanks for the report.. Fix will come soon.

        Show
        Jesse Kuhnert added a comment - Ok, I do see this now. Thanks for the report.. Fix will come soon.
        Hide
        Alex Dragomir added a comment -

        I commented the line dojo.require("dojo.widget.RichText") and i wrote the line :

        var rich = dojo.widget.createWidget("RichText");

        i get the error :

        [SyntaxError: unterminated string literal, file: http://localhost:8080/assets/static/dojo/dojo.js, line: 95]
        FATAL exception raised: dojo.ns.Ns.resolve: module 'dojo.widget.RichText' not found after loading via namespace 'dojo'

        Firstly i got the error when i tried

        var editor=dojo.widget.createWidget("TreeEditor");

        and i narrowed to RichText.

        I also tried the same thing with tapestry snapshot..

        Show
        Alex Dragomir added a comment - I commented the line dojo.require("dojo.widget.RichText") and i wrote the line : var rich = dojo.widget.createWidget("RichText"); i get the error : [SyntaxError: unterminated string literal, file: http://localhost:8080/assets/static/dojo/dojo.js, line: 95] FATAL exception raised: dojo.ns.Ns.resolve: module 'dojo.widget.RichText' not found after loading via namespace 'dojo' Firstly i got the error when i tried var editor=dojo.widget.createWidget("TreeEditor"); and i narrowed to RichText. I also tried the same thing with tapestry snapshot..
        Hide
        Jesse Kuhnert added a comment -

        Not sure why that would happen but you shouldn't need to call dojo.require() for any widgets anymore. Just make sure it has either a dojoType attribute or you give it the right name when constructing it.

        Of course if this happens when doing that method as well that's a totally different story..

        Show
        Jesse Kuhnert added a comment - Not sure why that would happen but you shouldn't need to call dojo.require() for any widgets anymore. Just make sure it has either a dojoType attribute or you give it the right name when constructing it. Of course if this happens when doing that method as well that's a totally different story..

          People

          • Assignee:
            Jesse Kuhnert
            Reporter:
            Alex Dragomir
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development