PDA

View Full Version : Form Submit opens new Window



flyingbo
20 Aug 2009, 6:10 AM
Hello,
i have a problem with forms. i´ve got the newest version of gxt from svn.
After submitting the form a new browser window opens.



public class InvisibleLoginSubmitForm extends FormPanel {
private static InvisibleLoginSubmitForm instance;

private InvisibleLoginSubmitForm() {
super();
instance = this;
this.setMethod(FormPanel.Method.POST);
this.setPosition(7780000, 8965423);
this.render(RootPanel.get().getElement());
}

public static InvisibleLoginSubmitForm getInstance() {
return instance == null ? new InvisibleLoginSubmitForm() : instance;
}

public void submitToUrl(final String url) {
setAction(url);
submit();
}
}
Has anybody an idea why?

Thanks a lot and greets

Chris