Jquery UI AjaxDatePicker implementation

24 views
Skip to first unread message

Chung How Ching

unread,
Oct 10, 2018, 8:51:33 AM10/10/18
to wicket-jquery-ui
Experts:

I am using wicket jquery ui and wicket jquery ui core version 7.10, i would like to implement datepicker for both start date and end date and below is the logic

1. both startDate and endDate max date is current date by setting the options.set("maxDate",Options.asString("+0d"));
2. If user select start date as (current date -1), then the endate maxDate option should set to current date which mean user can select the current date only
3. if user select the enddate as current date -2, then user only select any date before current date -2

I have tried to explore on method onValueChanged for both startDate and endDate, however it couldnt work. For example, if i implement in startDate, the endDate is not initlize yet and vice versa. Is there anyway i can implement the mentioned business logic via  wicket jquery ui?

Thank you

Sebastien

unread,
Oct 11, 2018, 5:28:47 PM10/11/18
to wicket-j...@googlegroups.com
Hi, I'll try to look at this asap!
Reply all
Reply to author
Forward
0 new messages