That was relatively easy: Replace these 2 functions with this:
DatePicker.prototype.goToNextMonth = function () { var d = new Date(this._selectedDate); d.setDate(Math.min(d.getDate(), DatePicker.getDaysPerMonth(d.getMonth() + 1, d.getFullYear()))); // no need to catch dec -> jan for the year d.setMonth(d.getMonth() + 1); this._none = true; this.setDate(d,false); } DatePicker.prototype.goToPreviousMonth = function () { var d = new Date(this._selectedDate); d.setDate(Math.min(d.getDate(), DatePicker.getDaysPerMonth(d.getMonth() - 1, d.getFullYear()))); // no need to catch jan -> dec for the year d.setMonth(d.getMonth() - 1); this._none = true; this.setDate(d,false); } This will de-selected a selected date when browsing through the months -- View this message in context: http://tapestry.1045711.n5.nabble.com/datefield-no-option-to-cancel-tp3333463p4441370.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org