-
1. Re: <rich:calendar> how to show popup at certain date
sivaprasad9394 Oct 18, 2012 1:36 AM (in response to javatwo)Hello Dave,
Try like below,
<rich:calendar value="#{calendarBean.selectedDate}"
locale="#{calendarBean.locale}"
popup="#{calendarBean.popup}" readonly="true"
datePattern="#{calendarBean.pattern}"
cellWidth="24px" cellHeight="22px" style="width:200px"/>
I have created calenderBean.java file,
public CalendarBean() {
locale = Locale.US;
popup = true;
pattern = "MMM d, yyyy";
jointPoint = "bottomleft";
direction = "bottomright";
readonly = true;
enableManualInput=false;
showInput=true;
boundary = "inactive";
}
_________________________________________________
public Date getSelectedDate() { String dateString = "09/03/2012"; Date convertedDate = null; SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy"); try { convertedDate = dateFormat.parse(dateString); selectedDate = convertedDate; } catch (ParseException e) { // TODO Auto-generated catch block e.printStackTrace(); } return selectedDate; }
Thanks,
Siva
-
2. Re: <rich:calendar> how to show popup at certain date
javatwo Oct 22, 2012 11:41 AM (in response to sivaprasad9394)Hi Siva, Thanks for sharing.
I noticed in your example that the value is bound to calendarBean.selectedValue that is initialized to a date.
In my case, the value is null and user is required to input a date. In our application, there is a clock different from
system clock. we want to <rich:calendar> to use our own clock.
Thanks.
-
3. Re: <rich:calendar> how to show popup at certain date
sivaprasad9394 Oct 25, 2012 9:30 AM (in response to javatwo)Hi Dave,
Please refer this link,it will help you..
https://community.jboss.org/thread/150860
https://community.jboss.org/thread/9305
Regarding error,
Property 'currentDate' not writable on type java.util.Date,
http://stackoverflow.com/questions/5832026/jsf-webflow-hselectmanylistbox-converting-troubles
Thanks,
Siva