PDA

View Full Version : DomQuery.select and css selector chars



ungarida
23 Nov 2009, 5:55 AM
I everybody,
I'm migrating to GXT2.0 and I notice this strange fact.

In some forms where the fields id contains characters like "@" or ":" or other when I call layout() method on the form this exception is shown in hosted mode:

[ERROR] Uncaught exception escaped
com.google.gwt.core.client.JavaScriptException: (TypeError): Object required
number: -2146827864
description: Object required
at com.extjs.gxt.ui.client.core.DomQuery.internalSelect(Native Method)
at com.extjs.gxt.ui.client.core.DomQuery.select(DomQuery.java:136)
at com.extjs.gxt.ui.client.core.DomQuery.selectNode(DomQuery.java:179)
at com.extjs.gxt.ui.client.core.El.selectNode(El.java:2072)
at com.extjs.gxt.ui.client.widget.layout.FormLayout.renderField(FormLayout.java:275)
at com.extjs.gxt.ui.client.widget.layout.FormLayout.renderComponent(FormLayout.java:239)
at com.extjs.gxt.ui.client.widget.Layout.renderAll(Layout.java:249)
at com.extjs.gxt.ui.client.widget.Layout.onLayout(Layout.java:230)
at com.extjs.gxt.ui.client.widget.layout.AnchorLayout.onLayout(AnchorLayout.java:77)
at com.extjs.gxt.ui.client.widget.Layout.layout(Layout.java:96)
at com.extjs.gxt.ui.client.widget.Container.doLayout(Container.java:348)
at com.extjs.gxt.ui.client.widget.Container.layout(Container.java:444)
at com.extjs.gxt.ui.client.widget.LayoutContainer.layout(LayoutContainer.java:241)
at com.extjs.gxt.ui.client.widget.Container.doLayout(Container.java:364)
at com.extjs.gxt.ui.client.widget.Container.layout(Container.java:444)
at com.extjs.gxt.ui.client.widget.LayoutContainer.layout(LayoutContainer.java:241)
at com.extjs.gxt.ui.client.widget.Container.layout(Container.java:427)
at com.extjs.gxt.ui.client.widget.LayoutContainer.layout(LayoutContainer.java:236)

If I remove that characters all sounds good!
Is a bug or not?

sven
23 Nov 2009, 6:00 AM
This type of ids are currently not supported. Please use the forum serach before posting because this was already answered before.

ungarida
23 Nov 2009, 6:18 AM
I'm sorry.

Probably I searched with the wrong keys..