Hi,

I've been playing around with sending an "invisible" form using
FormPanel:

FormPanel form = new FormPanel();
form.setAction(url);
form.setMethod(FormPanel.METHOD_POST);
form.setEncoding(FormPanel.ENCODING_URLENCODED);
form.add(new Hidden("abc", "xyz"));
form.addSubmitCompleteHandler(new SubmitCompleteHandler() {...});
form.setVisible(false);
RootPanel.get().add(form);

I have a couple questions regarding this:

1- If I do not add the form to the RootPanel, the browser opens a new
window for the response, and the SubmitCompleteHandler event is never
fired. Is it necessary to add the form to the RootPanel to get the
correct functionality?

2- If I do add the form to the RootPanel, would I have to somehow
remove it later on? Since this code may be executed an arbitrary
number of times would that cause a problem (memory leak or something)?

Thanks,
Abdullah

--

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.


Reply via email to