Announcement

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

    getting error when i try to run code that is given in smartgwt showcase

    Hello,


    I am trying to run the code given in http://www.smartclient.com/smartgwt/showcase/#rotation_new which is an example showing rotation of shapes.

    I have made the class containing the showcase code my entry point class, this is the error I get when i try to run it--


    Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot call method 'create' of undefined
    at ----------------------
    at ----------------------
    at ----------------------
    at ----------------------
    at com.arvindikchari.bspinner.client.Spinner.onModuleLoad(Spinner.java:219)
    ... 9 more


    The line in question is the following code--

    layout.addMember(drawPane);

    Why am I getting this error? What is wrong with my code?

    Is there some place where I can read on what all elements have to be defined, before a control is drawn using Smart GWT? That would be very helpful for me...

    Regards,
    Arvind.

    #2
    Most likely you have not loaded the Drawing module - see Optional Modules in the docs JavaDoc package.

    Comment


      #3
      Hello,

      Thank you very much-- earlier I skimmed through the javadocs but did not find detailed explanations- but at that time I did not look into the docs package in the javadoc :(

      Now I loaded the drawing module and it works perfectly.

      Regards,
      Arvind.

      Comment

      Working...
      X