DateBox with months and years only ?

155 views
Skip to first unread message

Celinio Fernandes

unread,
Sep 17, 2013, 4:30:38 AM9/17/13
to google-we...@googlegroups.com
Hi,

can anyone put me in the right direction to implement a composite widget to make a DateBox
which displays in a popup only the months and the years ?
Without the days.

Thanks for helping.

jaga

unread,
Sep 17, 2013, 4:18:53 PM9/17/13
to google-we...@googlegroups.com
The main ingredient will be a DateTimeFormat.

http://www.gwtproject.org/javadoc/latest/com/google/gwt/i18n/client/DateTimeFormat.html

Initialise your datebox with a correctly configured DateTimeFormat.

Create a uibinder class using gwt eclipse plugin. Add a date box to it. Use provided=true to allow you to initialise it manually.

Celinio Fernandes

unread,
Sep 18, 2013, 4:39:44 AM9/18/13
to google-we...@googlegroups.com
Hi,

thanks.
It is not the DateBox widget that i want to customize but the DatePicker widget.
I want the user to be able to pick a month of a year, not a day of a month of a year.
In fact, i want exactly this :
http://lucianocosta.info/jquery.mtz.monthpicker/

Any clue ?
Reply all
Reply to author
Forward
0 new messages