I might be missing something, but the DatePicker in GWT (I'm using version 2.0.3) doesn't give you the possibility to scroll back and forth by year, only month. Am I missing something? I know there's an external lib (code.google.com/p/gwt-datepicker/) I can use, but I'd like to avoid importing yet another 3rd party lib, when you should be able to do this in the DatePicker provided in GWT.
You'll need to create a DatePicker subclass that uses your own implementation of MonthSelector.
There's a recent thread on the GWT Google Group on this very topic, with example code:
Getting the default DateBox() picker to advance year at a time
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With