-
23 Jul 2009 2:06 PM #1
[FIXED] [2.0.1]FormPanel opens new window in IE7 when submitted
[FIXED] [2.0.1]FormPanel opens new window in IE7 when submitted
Hello,
I've found strange behaviour when using FormPanel.submit() method. When form is submitted, browser opens a new window. This only happens when using IE7 (running on WinXP sp3) in both modes, in FF and chrome code works fine.
Here is sample code:
In GXT 2.0 this code wroks fine. Is this a bug or I'm doing the wrong things?Code:package tests.client; import com.extjs.gxt.ui.client.event.ButtonEvent; import com.extjs.gxt.ui.client.event.Events; import com.extjs.gxt.ui.client.event.Listener; import com.extjs.gxt.ui.client.widget.VerticalPanel; import com.extjs.gxt.ui.client.widget.button.Button; import com.extjs.gxt.ui.client.widget.form.FormPanel; import com.extjs.gxt.ui.client.widget.form.TextField; import com.extjs.gxt.ui.client.widget.form.FormPanel.Method; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.RootPanel; public class Test implements EntryPoint { public void onModuleLoad() { VerticalPanel root = new VerticalPanel(); final FormPanel form = new FormPanel(); TextField<String> myField = new TextField<String>(); myField.setFieldLabel("Test field"); myField.setName("my-field"); form.add(myField); form.setAction("/test/blank.html"); form.setMethod(Method.POST); root.add(form); Button btn = new Button("Submit on event"); btn.addListener(Events.Select, new Listener<ButtonEvent>(){ @Override public void handleEvent(ButtonEvent be) { form.submit(); } }); root.add(btn); RootPanel.get("entryPoint").add(root); } }
Thanks.
-
23 Jul 2009 2:07 PM #2
This is already fixed in SVN. Please use the forum search before opening new topics in the bug forum. I am closing this issue.
-
25 Aug 2009 8:05 AM #3
I've searched all over the forum, and I can only see your comments about the issue being a duplicate.
Where can I find details for the fix, please.
-
26 Aug 2009 4:46 AM #4
he fix is in the svn. you need support options to have access to svn or you have to wait until next 2.0.2 release...
This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.
GreaseMonkey Script for a GXT-only Forum: it hides ExtJs here: New Posts • Search Results • Advanced Search form • Category overview http://www.extjs.com/forum/showthrea...041#post410041
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote