Enhancement calendar - weekday picker - generic weekday

UI Components for JSF
Post Reply
djmj
Posts: 400
Joined: 16 Dec 2011, 01:23

21 Apr 2012, 23:54

There is a timepicker, but the picked time is always associated with a specific day.

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;
	}
}
Last edited by djmj on 24 Apr 2012, 02:36, edited 4 times in total.
Primefaces: 11.0.0 RC2
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

22 Apr 2012, 03:06

Please create a new issue in issue tracker, reference this forum topic URL in the new issue, label new feature as 'NEW FEATURE: ...', and reply here with the new issue # and new issue URL.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

djmj
Posts: 400
Joined: 16 Dec 2011, 01:23

22 Apr 2012, 03:21

Primefaces: 11.0.0 RC2
Primefaces-Extension: 11.0.0
PrimeFaces-Mobile: 11.0
OmniFaces: 3.11
Jsf: Mojarra 2.3.8
Server: Glassfish 5.1.0

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests