3 Replies Latest reply on Jan 14, 2010 8:42 AM by Ilya Shaikovsky

    rich:calendar currentDate and popup

    Dean Ashby Newbie

      Hi,

       

      According to the dcumentation and my testing the currentDate attribute does not work when popup is set to true.  Before I dig into the source code to find out, is there a simple reason why this is so? And is this likely to change in the near future?

       

      Thanks,

       

      Dean

        • 1. Re: rich:calendar currentDate and popup
          Ilya Shaikovsky Master
          Yes calendar in popup mode uses only value from input in order to set current month or just shows today's current month. And this not supposed to be changed at least without some additional discussions. The reason on that - calendar in inline mode do not has value input which could be changed manually. And in popup mode you could define currentMonth and then the user could enter some date manually and try to open calendar. What should he expect? We believe that the calendar should opens according to the date entered.
          1 of 1 people found this helpful
          • 2. Re: rich:calendar currentDate and popup
            Dean Ashby Newbie
            Thanks for answering my question Ilya, I agree it does make sense that the calendar should open with the month displayed according to whatever date was entered into the input manually.  But what if there was no date already entered? In this case it would be useful to be able to override the default month displayed by the popup without having to put a default value into the actual input.
            • 3. Re: rich:calendar currentDate and popup
              Ilya Shaikovsky Master
              I mus say that we already reviewed this option some time ago after similar thread and I voted for the point you talking about. (to use currentDate where appropriate).. But unfortunatelly during those review more problematic cases were found so we remained this as is. But I will mark this for discussion during 4.x component moval again Thanks for your points!