• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
  • Tim Holloway
  • Carey Brown
  • salvin francis

JavaScript resources seems to be loading from wrong location when <script is on nested page...

Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a SmartGWT button and invoked it from /index.html, everything looks fine. Then I invoked it from /nested/index.html, the code loads, however, I see the browser is trying to load resources from .../nested/... and getting a 404 as my script and all resources are deployed at /. How do I work around this?

In other words, if I execute:

I always want to read everything from /printer-admin/BrandEditor/*. As it happens now, the code is loaded from this directory, however, resource requests are going to /printer-admin/nested/BrandEditor.

Alternatively, I could compile the module and place is relative to the page that's its going to be displayed from, however, I am not quite sure how to do that with Maven and the gwt-maven-plugin tool.

Thanks for any help.

I'm not sure if I approve of this interruption. But this tiny ad checks out:
create, convert, edit or print DOC and DOCX in Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!