GWT-based Mashlets

  • jruiz
  • 05/22/09
  • Offline
Posted: Tue, 05/26/2009 - 18:12

I'm trying to use GWT to make a Mashlet. My general approach is to write a thin wrapper .js file (the mashlet entry point), which in turn adds a DIV with a specific ID to the dom (that's what the GWT app looks for and attaches itself to) and a script tag to call the GWT-compiled module's entrypoint. I've gotten a little ways, but I think it's hung up on trying to find the GWT nocache.html files, which it appears to be looking for in the mashlets directory, but it's in the mashlet <typename> subdirectory.

I have not been able to find a way to get GWT to look in a different base URL. As an aside, I'm also seeing some flakiness that's making it hard to diagnose the problem - sometimes I get a javascript error that the "Presto" class could not be found. Other times, the screen goes blank and the browser just sits there waiting indefinitely for the page to load (Firebug does not report anything wrong). I have been clearing the cache, so I'm mystified as to why I see different results in what appears to be the same situation.

If anyone has an example of a GWT-based mashlet that I could start from and/or any advice on how to handle that GWT is looking for some of the resources in a different place than JackBe has them, I would greatly appreciate the help.

Thanks,

Jon

cfff4
0
Your rating: None

Hi, 1) Did you try copying

  • Wed, 05/27/2009 - 02:23

Hi,

1) Did you try copying the nocache.html file to the place where GWT seems to be looking for it? It might be worth doing this just to narrow down the issue.

2) The issue related to "Presto" not found could be due to the fact that some of the js files could not be loaded because of prior errors - possibly related to nocache.html. If you wait for about 20 seconds (which is the timeout), you should see the error listed on firebug.

Do post your findings here.


Hey, I was also having some

  • Wed, 05/27/2009 - 06:46

Hey,

I was also having some similar kind of problems. While searching I came to find out a very good company: Technosoft solutions. They deal in GWT development. As they provide free consultancy also I was able to gather quite a lot of info from them.
If you want you can visit their website and get more info or perhaps contact them at: http://www.techno-soft.com/index.php?option=com_content&task=view&id=57&...
I hope this helps
Thanks

Jason

 


Just a progress update. I am

  • jruiz
  • 05/22/09
  • Offline
  • Wed, 06/03/2009 - 11:11

Just a progress update. I am in the process of debugging the problem. It doesn't appear to be related to where the resources are, but instead in the bootstrap order. Once I devote more time to it and figure it out, I'll share what I found.

 

Thanks for the help so far.