A calendar is a system of reckoning time in which the beginning, length and divisions of a year are defined. The term may refer to a software class or library for the manipulation and display of calendar data, or to a list of events with associated dates and times, managed by a human via an application or operating system user interface.
Calendar in Primefaces:
Calendar is an input component used to select a date featuring display modes, paging, localization, ajax selection and more.
Value of the calendar should be a java.util.Date
:
<p:calendar value="#{dateBean.date" />
public class DateBean{
private date date;
}
Calendar in RichFaces :
The rich:calendar
component allows you to select a date using a monthly calendar widget. It is possible to use the component in a popup or inline mode. In popup mode the calendar is initially rendered as an input for date with a button on the right side to trigger the popup.
<rich:calendar id="calendar" value="#{calendarBean.selectedDate}" />