Coder Social home page Coder Social logo

Comments (15)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024

Original comment by [email protected] on 9 Dec 2008 at 1:18

  • Changed state: Accepted

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
also see http://forums.smartclient.com/showthread.php?t=3664

Original comment by [email protected] on 16 Jan 2009 at 7:51

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
AN UGLY WORKAROUND:
I had to add the following to my host html file before the nocache.js script 
tag.
<script>
  var isomorphicDir = "[MODULE_NAME]/sc";
</script>

Where MODULE_NAME is the module you are building.


SEE #139


Original comment by [email protected] on 2 Mar 2009 at 9:38

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
I took a quick look at the thread on
http://forums.smartclient.com/showthread.php?t=3664 and looks like my 
workaround is
not so nasty after all.  

Please note that this is NOT A SOLUTION.  This will have to be addressed so 
that GWT
1.6 can be used with smartgwt 1.0.

Original comment by [email protected] on 2 Mar 2009 at 9:47

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Issue 139 has been merged into this issue.

Original comment by [email protected] on 10 Apr 2009 at 3:33

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Add 

<script>
  var isomorphicDir = "[MODULE_NAME]/sc";
</script>

to your host html file.

Original comment by [email protected] on 5 May 2009 at 4:32

  • Changed state: Fixed
  • Added labels: SmartGWT-1.0b3

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
I'm using SmartGWT-1.2 and have renamed my module to "mymodule" but I had to add

<script>
  var isomorphicDir = "mymodule/sc";
</script>

to my host html file. I thought this was fixed?

Original comment by [email protected] on 23 Aug 2009 at 6:35

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
cheng, that works in SmartGWT 1.2. Have a look at  the Hello world sample for 
GWT 1.6 that is shipped in the 
SmartGWT distribution and compare your with this to see what you're doing 
incorrectly.

Original comment by [email protected] on 23 Aug 2009 at 6:38

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
I checked the source at
http://code.google.com/p/smartgwt/source/browse/trunk/samples/helloworld-1.6/war
/HelloWorld.html:

    <title>SmartGWT Hello World</title>

    <!-- IMPORTANT : You must set the variable isomorphicDir to [MODULE_NAME]/sc/ so
that the SmartGWT resource are 
          correctly resolved -->        
        <script> var isomorphicDir = "helloworld/sc/"; </script> 

    <script type="text/javascript" language="javascript"
src="helloworld/helloworld.nocache.js"></script>


So the fix is to define the isomorphicDir? I thought that the fix meant that it 
was
not longer necessary to define such variable

Original comment by [email protected] on 23 Aug 2009 at 7:05

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
sorry, I misunderstood. Yes, you still need to add the variable.

Original comment by [email protected] on 23 Aug 2009 at 7:08

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Cool, many thanks!

Original comment by [email protected] on 23 Aug 2009 at 7:14

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Even in SmartClient 2.0 this workaround still seems to be necessary. The script 
to set 
the isomorphicDir MUST come before the GWT no-cache script!

Original comment by [email protected] on 21 Dec 2009 at 10:36

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Setting isomorphicDir variable doesn't solve the problem and resource is loaded 
relative to context URL and causes problems! What is workaround?  

Original comment by [email protected] on 21 Sep 2010 at 11:34

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
How come this is a medium priority issue. It's a huge one!

Original comment by [email protected] on 5 Nov 2010 at 4:32

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
With having a look on the html resources, this works for me:

<script>
  var isomorphicDir = "sc/";
</script>

Iused the totsp archetype and SmartClientGWT 2.4

Original comment by [email protected] on 7 Feb 2011 at 11:57

from smartgwt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.