PDA

View Full Version : Hovering on the fields causes exception



sforteza
21 Oct 2009, 2:04 AM
Hello everyone, I am having problem with mouse pointer hovering on disabled fields. For instance if I move the mouse pointer on a disabled TextField it generates an error message.

Using GXT Version 2.0.1.

Error occur using Hosted Mode and IE6.




[ERROR] The element may not be null
java.lang.AssertionError: The element may not be null
at com.extjs.gxt.ui.client.core.El.<init>(El.java:180)
at com.extjs.gxt.ui.client.event.DomEvent.getTargetEl(DomEvent.java:157)
at com.extjs.gxt.ui.client.widget.Component.onBrowserEvent(Component.java:753)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1320)
at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1299)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1262)
at sun.reflect.GeneratedMethodAccessor10.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.SwtHostedModeBase.processEvents(SwtHostedModeBase.java:235)
at com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java:558)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

Also happens using IE6 but cannot get the same exception, instead to show an error message we use Info to display a message in the bottom right region of the browser.

Info message:

Unexpected Error
(TypeError): 'null' is null or not an object number: -2146823281 description: 'null' is null or not an object

sforteza
27 Oct 2009, 11:05 PM
Anyone who knows a workaround to solve this? ~o)

suresh.sivanantham
28 Oct 2009, 1:42 AM
Can you give a code sample

Vasily.R
9 Nov 2009, 1:25 PM
...having problem with mouse pointer hovering on disabled fields. For instance if I move the mouse pointer on a disabled TextField it generates an error message.

Have same problem. Have same stack trace.

Cannot post whole code here... but it's a tab panel, each tab item have some layout & form with fields. Half of fields are disabled according to app's logic.
Here is an excerpt for typical field configuration:


public ExampPropertiesFormPanel(boolean editable){

...

TextField mttrIdF = new TextField();
mttrIdF.setName("mttrId");
mttrIdF.setFieldLabel("Mttr");
mttrIdF.setReadOnly(true);
if(!editable)
mttrIdF.disable();

...
}I'm adding tab items dynamically. For me, the problem appears only if I'm adding a new tab & tab scrolling appears. After that I'm getting such error for any opened tab item. If I'm closing a tab item once problem appeared (so, there is no scrolling for tab items after that) problem still appears.

Any ideas?

Arno.Nyhm
10 Nov 2009, 7:31 AM
can you make a small working example code with an entrypoint?
thats the only possibility to test your bug and replay it.

Vasily.R
10 Nov 2009, 8:02 AM
can you make a small working example code with an entrypoint?
thats the only possibility to test your bug and replay it.

I'm not sure I'll have same problem in an example... It seems to be a complex issue... not sure it will appear for any ordinary example with disabled text field.

Thx, I'll try to dig into it... will find out what's happening...

By the way, how to resolve reference to JS object during debugging? For example, at DomEvent.java, line 135, I have an event, not 'debuggable' java object, but reference to JS object in fact... I wanna inspect it... to see, for example, his id... how to do that in debug mode in Eclipse? How to see all properties of this JS object?