Announcement

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

    Moving from GWT to SmartGWT

    Please help explain to me where I am going wrong with trying to replace my gwt code with SmartGWT. I am new to this and I believe I am missing either an include or a tag some where.

    I am using SmartGWT 3.0, but the SmartGWT_Qucik_Start_Guide.pdf is version 2.4. The zip file unpacked as smartgwt-3.0p. So I might have downloaded the wrong bundle to begin with. But this was only so I could get the javadoc, showcase, and pdf locally.

    Using GWT version: 2.4.0.
    Brower Firefox 12.0
    Application server:Glassfish 3
    build using mvn 3.0.4

    Now I started in eclipse with the GWT hello world and drafted up my interface. Later I noticed how nice the SmartGWT package is as well as the convienience methods on the basic things like the TextItem. No need for additional label objects and so forth.

    Well, I read the quick start guide a couple times and reviewed the samples in the Showcase. But when I tried to make the simple change on my existing GWT EntryPoint, nothing shows up.

    All I see is the text in my html file. When I go back and avoid the layout and canvas, and attach the widgets to the RootPane of GWT, I can see the widget.

    I added the tag:
    Code:
      <!--  SmartGWT declarations -->
      <inherits name="com.smartgwt.SmartGwt"/>
    In the my modules foobar.gwt.xml file.

    No changes were made to the GWT Web Application Starter Project's html file.

    Why can't I use the Canvas or Layout?

    I only see the text in the html page, no widgets and stuff.

    #2
    Got it.

    What the document failed to mention is in the gwt.xml file.
    The <inherits name="com.smartgwt.SmartGwt"/> tag needs to be before the entry point tag. Mine was after it.

    If not, then a com.google.gwt.core.client.JavaScriptException: (ReferenceError): $debox is not defined message is thrown.

    Comment


      #3
      Something similar would happen with any GWT-based framework, but we've gone ahead and make mention of this in the install docs anyway.

      Comment

      Working...
      X