Calendar default month placement after render

Components, Ajax Framework, Utilities and More.
Post Reply
Posts: 22
Joined: 15 Feb 2010, 20:23

10 Sep 2010, 15:17


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:

    pic 2:

User avatar
Posts: 17556
Joined: 05 Jan 2009, 00:21
Location: Cybertron

16 Sep 2010, 20:23

Images seem to be broken.

Posts: 22
Joined: 15 Feb 2010, 20:23

16 Sep 2010, 23:01

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"?

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests