1. #1
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    68
    Vote Rating
    1
    blake1024 is on a distinguished road

      0  

    Default Quick Setup for Sencha GXT 3.X issues

    Quick Setup for Sencha GXT 3.X issues


    Greetings,

    Looking at setup.txt that comes with Sencha GXT 3.0.0 I have the following questions:

    1. On 2b. it says href="{module name}/reset.css"

    I have no file named "reset.css" anywhere in my project. GXT comes with two (probably the same):

    ./src/gxt/com/sencha/gxt/theme/base/client/public/reset.css
    ./src/gxt/com/sencha/gxt/theme/base/public/reset.css

    So, what is "{module name}" and should "reset.css" be copied somewhere?

    2. Is it a good idea to copy gxt-3.0.0.jar to [YOURPROJECT]/war/WEB-INF/lib

    Thanks!

    Blake McBride

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,732
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      1  

    Default


    Thanks for checking out GXT 3! You don't need to do anything to move reset.css into your web directory - the compiler will automatically make sure it is there, provided you are using a theme that needs it (all themes extending from Base will have it).

    In your module file (ends in .gwt.xml) you might have a rename-to attribute - if so, that is the name of the module. This is the folder in which the modulename.cache.js file is created, along with other things like a hosted.html file, and eventually several <giant-hash-name>.cache.html files. If you don't specify a rename-to, it will default to the path to your module. So a module file at com/my/project/MyProject.gwt.xml will be com.my.project.MyProject, and the css file will be loaded like this:

    Code:
    <link rel="stylesheet" type="text/css" href="com.my.project.MyProject/reset.css" />
    Your html file should already have a JavaScript file loaded from in that same directory.

    As far as copying the jar into WEB-INF/lib/, this is only necessary if you use any GXT classes from your server. The most likely classes will be load config and load result classes in com.sencha.gxt.data.shared. If you dont use them, it should not be necessary to copy it.

Thread Participants: 1