Thanks for the reply Bryan.

The problem I was having is different.

I fixed it setting my HTML object to "" - html.setHTML("");
and then the applet is not loaded anymore.

When I need the applet to be loaded again I set this same HTML to the applet
tag.

Thanks



2011/1/10 Bryan Donnovan <bryandonno...@gmail.com>

> The problem has to do with how IE initializes applets.
>
> In my case, I saw an init/destroy cycle followed by a second cycle
> with init/start
>
> The solution was to move the code from Applet::init() to
> Applet::start()
>
> I expect that you are doing work inside init()?  If so, that might
> explain the double print.
>
> FYI - I had good luck placing my APPLET code inside of a g:HTML
> UiBinder template.  That does not change the problem above, but it
> does make for a cleaner implementation.
>
> On Jan 10, 9:12 am, Alexei Telles <alexeitel...@gmail.com> wrote:
> > Hi Group;
> >
> > I am using an applet in my GWT project.
> >
> > This applet opens a socket connection and send a package to a print.
> >
> > I am having a problem only using the internet explorer browser.
> >
> > I have a class that loads the applet. This class extends a
> > VerticalPanel. In the constructor I have:
> >
> > public PanelApplet) {
> >                 super();
> >                 super.add(html);
> >         }
> > html is a private GWT HTML object.
> >
> > And when I need to load the applet I do:
> >
> > html.setHTML("<APPLET CODEBASE=\"applet\" CODE=\"PrintApplet.class\"
> > ARCHIVE=\"PrintApplet.jar\" WIDTH=400 HEIGHT=70>" +
> >                                                                 "<PARAM
> NAME=\"address\" VALUE=\"" +
> > impressao.getEnderecoRede() + "\"></PARAM>" +
> >                                                                 "<PARAM
> NAME=\"port\" VALUE=\"" + impressao.getPorta() + "\"></
> > PARAM>" +
> >                                                                 "<PARAM
> NAME=\"pack\" VALUE=\"" + impressao.getPacote() +
> > "\"></PARAM>" +
> >                                                          "</APPLET>");
> >
> > The problem I am having is: If I try to remove the html from the panel
> > with:
> > super.remove(html); or
> > super.remove(0);
> >
> > Or even if I make the component invisible. Whatever I do, internet
> > explorer browser executes this applet again and a new package is sent
> > to the printer.
> >
> > I don't know what's happening, so it is a littlle hard to try to find
> > a solution.
> >
> > This only heppens with internet explorer browser.
> >
> > I appreciate any help.
> >
> > Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to