PDA

View Full Version : [FIXED] Bug with on Blur of DateField



rgpinheiro
1 Sep 2008, 12:45 PM
When I have an DateField in a formpanel inside a dialog, I have the follow problem:


[ERROR] Uncaught exception escaped
java.lang.AssertionError: attribute 'clientX' not defined for event type 'blur'
at com.google.gwt.user.client.DOM.assertEventType(DOM.java:1360)
at com.google.gwt.user.client.DOM.eventGetClientX(DOM.java:440)
at com.extjs.gxt.ui.client.event.DomEvent.getClientX(DomEvent.java:56)
at com.extjs.gxt.ui.client.event.DomEvent.getXY(DomEvent.java:133)
at com.extjs.gxt.ui.client.widget.form.DateField.onBlur(DateField.java:179)
at com.extjs.gxt.ui.client.widget.form.Field.onComponentEvent(Field.java:448)
at com.extjs.gxt.ui.client.widget.Component.onBrowserEvent(Component.java:652)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1388)
at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1367)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1321)
at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.moz.MethodDispatch.invoke(MethodDispatch.java:80)
at org.eclipse.swt.internal.mozilla.XPCOM.VtblCall(Native Method)
at org.eclipse.swt.internal.mozilla.nsIWebBrowserFocus.Deactivate(nsIWebBrowserFocus.java:49)
at org.eclipse.swt.browser.Browser.Deactivate(Browser.java:1407)
at org.eclipse.swt.browser.Browser$2.handleEvent(Browser.java:655)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1109)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1090)
at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1082)
at org.eclipse.swt.widgets.Shell.gtk_focus_out_event(Shell.java:905)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1433)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3798)
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5273)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1135)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1428)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:721)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:594)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:358)the sample code is:

Dialog dialog = new Dialog();

FormPanel form = new FormPanel();

DateField date = new DateField();

form.add(date);

dialog.add(form);

dialog.show();Im using GXT 1.0.3 alpha
Linux Ubuntu 8.04
GWT 1.5.1 RC2

alawi
1 Sep 2008, 3:37 PM
I got similar bug as well.

ERROR] Uncaught exception escaped
java.lang.AssertionError: attribute 'clientX' not defined for event type 'blur'
at com.google.gwt.user.client.DOM.assertEventType(DOM.java:1360)
at com.google.gwt.user.client.DOM.eventGetClientX(DOM.java:440)
at com.extjs.gxt.ui.client.event.DomEvent.getClientX(DomEvent.java:56)
at com.extjs.gxt.ui.client.event.DomEvent.getXY(DomEvent.java:133)
at com.extjs.gxt.ui.client.widget.form.ComboBox.onBlur(ComboBox.java:998)
at com.extjs.gxt.ui.client.widget.form.Field.onComponentEvent(Field.java:448)
at com.extjs.gxt.ui.client.widget.Component.onBrowserEvent(Component.java:652)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1388)
at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1367)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1321)
at sun.reflect.GeneratedMethodAccessor187.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126)
at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:721)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:594)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:358)

rgpinheiro
2 Sep 2008, 5:12 AM
same problem with combobox too...

darrellmeyer
2 Sep 2008, 9:23 AM
You posted the bug is in 1.0.3, but should only be happening in 1.1. The fix is in SVN.