I have noticed that numerous Date
methods in Java have been deprecated, but rather most people tell me to use Calender
.
Here is my problem. I am trying to create a Calendar
where you can select a date and within Java set the date. So I have
public class someClass
{
private Date startDate;
private Date endDate;
public void setStartDate(Date date)
{
this.startDate = date;
}
public void setEndDate(Date date)
{
this.endDate = date;
}
public Date getStartDate()
{
return this.startDate;
}
public Date getEndDate()
{
return this.end;
}
}
with the RichFaces code
<rich:calendar popup="true" mode="ajax" value="#{someClass.startDate}"/>
When I manually set it up in code it seems to show up, but when I change to a different date it never sets the date.
I have also seen that within calendars they tell me to use
Calendar
. But when I type in Calenders.Time.
it's not in Java, is it because it's protected? How does it work with RichFaces? Can RichFaces access it?