Hi all,
I'm currently using gwt 1.6 and gxt 2.0 (extgwt 2.0) and I'm having a huge
problem on how to catch the submit response of a form submit. I've got the
following client side code:
**
*//...
this.setMethod(Method.POST);
this.setEncoding(Encoding.MULTIPART);
this.setAction(fileUploadAction);
** this.addListener(Events.BeforeSubmit, new Listener<FormEvent>() {*
* **public void handleEvent(FormEvent be) {*
* GWT.log("event happened "+be.getType().toString(), null);*
* MessageBox.alert("Result", "BeforeSubmit "*
* + be.getResultHtml(), null);*
* }*
* });*
*
this.addListener(Events.Submit, new Listener<FormEvent>() {
public void handleEvent(FormEvent arg0) { *
* GWT.log("event happened "+be.getType().toString(), null);*
* MessageBox.alert("Result", "This is the result:"
+ arg0.getResultHtml(), null);
}
});
//...*
The strange thing is that when I attempt to do *this.submit()* the
Events.BeforeSubmit is catched (therefore I see some nice message on the
screen), but the Events.Submit is not. Since the idea is the same I don't
know what I'm missing. I've tried taking the generics off the Listener
(changing it ot BaseEvent) but is even worse - no messages at all. So, any
ideas?
thanks in advance!
ps.: I have complete understanding that this is the gwt discussion list (not
the gxt), but since I'm running out of choices (already tried the gxt forum
with no luck) I had to post here anyway (so, I'm apologizing in advance).
Sorry for any inconvenience.
--
Lucas de Oliveira Arantes
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---