Announcement

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

    how to figure out which modules to inherit

    I'm new to gwt and smart gwt. I'm having trouble understanding modules and the inheritence of modules placed in the xml config. Are we basically inheriting the generated js from these other modules/packages??

    And how do we determine which modules to inherit? If I come across a smartgwt example that I want to use and get my hands on the java source, how then do I know if I have to inherit some modules and which ones?

    thanks

    #2
    Module Inheritance

    This is not really a SmartGWT question, it is a general GWT question. In general you just reference the module you want like this:
    <inherits name='com.smartgwt.SmartGwt' />
    <inherits name="org.puremvc.PureMVC_Java_MultiCore" />
    and if THOSE have dependencies that the Google compiler will discover and add those in; you do not need to handle the deeper dependency management.

    If you were to take someone else's GWT module and copy bits of out it but not include their xxxxxx.gwt.xml file, then in that circumstance you'd need to look into their xxxxxx.gwt.xml file and copy the bits you need to your own .gwt.xml

    Some info:
    http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideInheritingModules

    Comment


      #3
      I'm using Netbeans to develop and the compiler doesn't seem to tell me which modules I need. It just gives messages like

      Code:
      No source code is available for type com.smartgwt.client.types.Alignment; did you forget to inherit a required module?
      How would I find the module name from that?

      thanks

      Comment


        #4
        how to figure out which modules to inherit

        The compiler does not have access to the source code for SmartGWT. Normally you'd place in your classpath a jar with the both the object AND source code. A jar for SmartGWT is available here:

        http://www.smartclient.com/maven2/com/smartgwt/smartgwt/2.0/

        Further than that, your issue is a routine GWT issue:
        http://www.google.com/search?q="No+source+code+is+available+for"+GWT

        Comment


          #5
          Wow, you've just solved my phone Card Calling Cards problem too. Cheers.
          Last edited by cassey37; 26 Jun 2013, 20:29.

          Comment


            #6
            I just want to say thank you for the information. It is very valuable for me..newbie here Lantana Grace Church and encountering the same situation.
            Thanks and keep up the good work..
            Last edited by sienna787; 7 Jul 2013, 05:34.

            Comment

            Working...
            X