New issue 12 by o.carmen.f: I get an error when selecting the 10th day
http://code.google.com/p/gwt-datepicker/issues/detail?id=12
What steps will reproduce the problem?
1. create a textbox
2. add a click listener that opens a popup with a datepicker (much like
what you did with datebox)
3. try to select the 10th day of the month
What is the expected output? What do you see instead?
the "datePicker.addValueChangeHandler" has in the body of the
"onValueChange" function a "datePicker.getHighlightedDate()", which should
return the date selected, but instead returns the following error:
java.lang.ArrayIndexOutOfBoundsException: 10
at
com.iqm.crotaliip.client.CrotaliiP$5.onValueChange(CrotaliiP.java:170)
at
com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEv
ent.java:128)
at
com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEv
ent.java:1)
at
com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(Handle
rManager.java:65)
at
com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(Handler
Manager.java:53)
at
com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:17
8)
at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:52)
at
com.google.gwt.user.datepicker.client.DateChangeEvent.fireIfNotEqualDates(D
ateChangeEvent.java:44)
at
com.google.gwt.user.datepicker.client.DatePicker.setValue(DatePicker.java:5
83)
at
com.google.gwt.user.datepicker.client.DefaultCalendarView$CellGrid$DateCell
.onSelected(DefaultCalendarView.java:74)
at
com.google.gwt.user.datepicker.client.CellGridImpl.setSelected(CellGridImpl
.java:249)
at
com.google.gwt.user.datepicker.client.CellGridImpl.onBrowserEvent(CellGridI
mpl.java:195)
at
com.google.gwt.user.client.ui.Composite.onBrowserEvent(Composite.java:54)
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.GeneratedMethodAccessor9.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:2
35)
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)
What version of the product are you using? On what operating system?
org.cobogw.gwt-1.2.4, gwt-windows-1.5.3, eclipse ganymede 3.4.2, windows xp
sp3
Please provide any additional information below.
1. I get the same error if instead of "datePicker.getHighlightedDate()" I
use "datePicker.getValue()" (for the selection of the 10th day)
2. if I say "datePicker.setValue(backupDate);", make teh popup hide, then
show it again, the date is not coloured in blue in the calendar. Shouldn't
it be?
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings