Page 1 of 1

Calendar default month placement after render

Posted: 10 Sep 2010, 15:17
by drakenra
Hi!

Is it possible to set calendar default month placement other than to the first place after calendar component is rendered? I would like it to get result as from picture 1 to picture 2.

Date have been set to 10.9.2010.
  • pic 1:
    Image

    pic 2:
    Image
Thanks.

Re: Calendar default month placement after render

Posted: 16 Sep 2010, 20:23
by cagatay.civici
Images seem to be broken.

Re: Calendar default month placement after render

Posted: 16 Sep 2010, 23:01
by drakenra
Hmm... That's strange I can see the pictures. But anyway, so there is like calendar shown with 5 pages (months).

Code: Select all

<p:calendar value="#{mybean.todayDate}" pages="5" mode="inline" />
Let's assume that #{mybean.todayDate} value is today 16.9.2010 :). After calendar is rendered it will show "september" (todayDate is in this month),"october","november","january" and "february" which is cool. I was wonder if is it possible to set for example todayDate's month into the middle (or any place from those 5 pages) as result will be "july", "august", "september" (todayDate is in this month), "october" and "november"?