Hi there,
I've got a CheckBoxItem (with ChangedHandler associated) used to filter a ListGrid. The related AdvancedCriteria is created into ListGrid container class: onChanged(...) method only launch an asinc event.
on the other side (ListGrid implementation class), the AdvancedCriteria def:
and the asinc event handler logic:
Filtering is doing correctly, but I noticed this error into Development console everytime filterData(criteria) method is called (so this happend when I "check" CheckBoxItem):
more details:
I'm using SmartGWT 3.0 LGPL with Eclipse Indigo, JDK 1.6.0_31 x86, official GWT SDK 2.4.0 on Widows 7 Professional SP1.
Any ideas or suggestions?
Thanks a lot,
Luca.
I've got a CheckBoxItem (with ChangedHandler associated) used to filter a ListGrid. The related AdvancedCriteria is created into ListGrid container class: onChanged(...) method only launch an asinc event.
Code:
form = new DynamicForm(); form.setAutoHeight(); form.setAutoWidth(); hiddenCritBoxItm = new CheckboxItem("showClosedchBox", "Show CLOSED"); hiddenCritBoxItm.addChangedHandler(new ChangedHandler() { @Override public void onChanged(ChangedEvent event) { GWTEventDispatcher.publish(new TicketGridFilteringEvent(TicketGridFilteringEventType.FILTERING, (Boolean) event.getValue())); } }); form.setFields(hiddenCritBoxItm);
Code:
public Criteria criteria = new AdvancedCriteria(TicketGridFieldEnum.STATE.toString(), OperatorId.INOT_ENDS_WITH, "done");
Code:
@Override public void onEventDispatched(GWTEvent ev) { if (ev instanceof TicketGridFilteringEvent) { if (((TicketGridFilteringEvent) ev).getEvType() == TicketGridFilteringEventType.FILTERING) { if (((TicketGridFilteringEvent) ev).isDoFilter() == true) { clearCriteria(); } else { filterData(criteria); } } } }
Code:
[ERROR] [configurationsystem] - 11:04:01.738:MUP5:WARN:DynamicForm:isc_DynamicForm_2:Dynamic Form editing advanced criteria object:{ fieldName:"STATE", operator:"iNotEndsWith", value:"done", _constructor:"AdvancedCriteria" }. Form level operator specified as 'and' - Criteria returned from this form will be nested in an outer and clause.
Code:
11:04:01.740 [ERROR] [configurationsystem] 11:04:01.738:MUP5:WARN:DynamicForm:isc_DynamicForm_2:Dynamic Form editing advanced criteria object:{ fieldName:"STATE", operator:"iNotEndsWith", value:"done", _constructor:"AdvancedCriteria" }. Form level operator specified as 'and' - Criteria returned from this form will be nested in an outer and clause. com.smartgwt.client.core.JsObject$SGWT_WARN: 11:04:01.738:MUP5:WARN:DynamicForm:isc_DynamicForm_2:Dynamic Form editing advanced criteria object:{ fieldName:"STATE", operator:"iNotEndsWith", value:"done", _constructor:"AdvancedCriteria" }. Form level operator specified as 'and' - Criteria returned from this form will be nested in an outer and clause. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107) at com.smartgwt.client.widgets.grid.ListGrid.filterData(ListGrid.java) at client.gui.function.workpane.ticket.TicketListGrid.onEventDispatched(TicketListGrid.java:107) at client.event.dispatcher.GWTEventDispatcher.publish(GWTEventDispatcher.java:26) at client.gui.function.workpane.ticket.TicketWorkPane$2.onChanged(TicketWorkPane.java:89) at com.smartgwt.client.widgets.form.fields.events.ChangedEvent.dispatch(ChangedEvent.java:95) at com.smartgwt.client.widgets.form.fields.events.ChangedEvent.dispatch(ChangedEvent.java:1) at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1) at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40) at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193) at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127) at com.smartgwt.client.core.DataClass.fireEvent(DataClass.java:248) at sun.reflect.GeneratedMethodAccessor107.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.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213) at sun.reflect.GeneratedMethodAccessor106.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.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) at java.lang.Thread.run(Thread.java:662)
Any ideas or suggestions?
Thanks a lot,
Luca.
Comment