But time's and ranges can also be specific to a weekday like opening times.
A weekday picker for calendar would be a nice enhancement. (same for primefaces extension timepicker)
If anyone is interested:
I realized it with a Date Wrapper Object containing a single (two for time-range) Date field but additional setter for day and
Code: Select all
public class DateTime
{
private Date date;
public Date getDate()
{
return this.date;
}
public setDate(final Date date)
{
if(this.date != null)
//set Calendar.HOUR_OF_DAY and calendar.MINUTE of target
else
this.date = date;
}
public void setDay(final Date day)
{
if(this.date != null)
//only set Calendar.DAY_OF_WEEK of this.date
else
this.date = day;
}
public Date getDay()
{
return this.date;
}
}