I don't think this is a bug. It's just one of the drawbacks of rapid prototyping/development that hosted mode provides. You see, hosted mode uses this custom browser (the GWT Shell) that is not really running in a normal mode; it's drawing your html elements directly from your Java code, instead of displaying html/js pages, so applets don't fit into the equation or intended purpose.
I guess it could be made to work but I would imagine it would require too much time and energy and it would cater only to the small percentage of us that use applets (I only use applets when there's no better option to do what we need to do). I think the best you can hope for is that maybe this will work using OOPHM (out of process hosted mode) which is in the works. If somebody has tested OOPHM (you can build a GWT version from source that has it) with applets, please report your findings here! Otherwise, use the workaround I provided. On Feb 18, 3:56 pm, DAve <[email protected]> wrote: > Thanks! > > Is there a bug filed with Sun or Google that I can track? > > El Mentecato Mayor wrote: > > Yes, this is a known problem. Hosted mode doesn't support applets (not > > running a real html/javascript page), so you'll have to test your > > applet integration on web-mode only. > > > I do something like this: > > > if (GWT.isScript()) { // running on web mode > > applet = new AppletPanel(); > > } > > else { // running on hosted mode > > applet = // new Dummy panel such as SimplePanel(); > > } > > > so that you can test evrything else in hosted mode, and only go to web > > mode when you really need to test something on the applet or its > > interactions with your other widgets. > > > On Feb 16, 8:54 am, DAve <[email protected]> wrote: > > > I'm writing a GWT app that embeds a Java applet (for legacy reasons). > > > Whenever I try to run it in Hosted Mode, the host browser crashes, so > > > I have to compile it and load it in a real browser, slowing down my > > > development process and preventing me from using the step-through > > > debugger. > > > > Is this a known problem? Is there a workaround? > > > > Thanks, > > > Dave --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
