0 Replies Latest reply: Aug 10, 2011 3:49 PM by Rocky S RSS

rich:calendar currentDate attribute?

Rocky S Master

I'm trying to achieve a scenario, when popup button is clicked, it should show me selected date as 01/01/2014?

I tried to achieve this using currentDate attribute. So far it seems it did nothing, so I do not understand what is the use of attribute currentDate attribute?


<rich:calendar value="#{bean.StartDate}"  datePattern="MM/dd/yyyy" inputSize="8"      currentDate="01/01/2014">



dev guide says-


Usage "currentDate" attribute isn't available in the popup mode.

With help of the "currentDate" attribute you can define month and year which will be displayed currently.

I guess, another way I can achieve it, by using onexpand event, call the javascript function selectDate(date).

Let me know if this sounds good?