PDA

View Full Version : Events.Sumbit doesn't be fired



coebs
1 Sep 2009, 2:39 AM
Hi all,

The issue I met is :



FormPanel panel = new FormPanel();
panel.setMethod(FormPanel.Method.POST);
panel.setEncoding(FormPanel.Encoding.URLENCODED);
panel.setAction(a_working_cgi_url);
panel.addListener(Events.Submit, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
System.out.println("This message will never be showed!!!");
}
});


The message in the listener doesn't be shown after "panel.submit()" being called. Is it a bug? How can I fix it?

I also met other threads in the GXT-HELP section which describes the same problem in Portugues and English with no answers:
http://extjs.com/forum/showthread.php?p=381471#post381471
and
http://www.yui-ext.com/forum/showthread.php?t=78311

Thanks in advance..

The development environment is:
GXT version: gxt-2.0.1
GWT verison: 1.7
Host mode
Eclipse: Version: 3.5.0.v20090611a-9gEeG1HFtQcmRThO4O3aR_fqSMvJR2sJ
Browser: Eclipse bundled internal browser
OS: Windows XP / Linux

sven
1 Sep 2009, 12:05 PM
Moving this to the help forum. Keep the same origin policy in mind