How to Prepopulate <rich:calender> in JSF?
Posted
by Hari
on Stack Overflow
See other posts from Stack Overflow
or by Hari
Published on 2010-05-09T13:44:58Z
Indexed on
2010/05/09
13:48 UTC
Read the original article
Hit count: 226
In My application i am pre-populating some datas from the Server. When i assign the data for the <rich:Calender>
.I am not able to see the date in the UI.I am convert the string from the database to Date format
. Kindly Help.
My JSF Code
<a4j:outputPanel>
<rich:calendar id="myCalendar" popup="true" mode="client"
preloadDateRangeBegin="#{item.date}" preloadDateRangeEnd="#{item.date}"
value="#{item.date}" showApplyButton="true"
cellWidth="24px"cellHeight="22px" style="width:200px">
</rich:calendar>
</a4j:outputPanel>
Date Convertion I am Using
DateFormat dateForm = new SimpleDateFormat("MM/dd/YYYY");
Date date = dateForm.parse(lastRunDate);
© Stack Overflow or respective owner