Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Alex Paransky J
Greenhorn
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.

-AP_
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic