Announcement

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

    Adapting to base path

    I just deployed my app on Google App Engine, and the SmartGWT app is loaded at /gwtStart/...Application.nocache.js from my html file.

    However, the following GWT code:

    RootPanel.get("someDiv").add(new Img("animals/Elephant.jpg"));

    renders this HTTP call:

    GET /images/animals/Elephant.jpg HTTP/1.1

    I would expect the HTTP call to look like this instead:

    GET /gwtStart/images/animals/Elephant.jpg HTTP/1.1

    i.e respecting the base path of the loaded js file.

    As it is today, I need to edit the GAE app.yaml handlers in order to take care of the faulty calls.

    Or is it just me?

    Additionally, the following HTTP request fails unless I handle it via app.yaml.: GET /sc/skins/SilverWave/skin_styles.css HTTP/1.1
    Last edited by Peter Odéus; 6 Jan 2009, 08:54. Reason: more than images problem

    #2
    This is a known issue. See Issue 36

    Not sure when its going to be fixed.

    Comment


      #3
      As a workaround you can call Page.setAppImgDir("/gwtStart/images/")

      Comment

      Working...
      X