Calendar default month placement after render

UI Components for JSF
Post Reply
drakenra
Posts: 22
Joined: 15 Feb 2010, 20:23

10 Sep 2010, 15:17

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.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

16 Sep 2010, 20:23

Images seem to be broken.

drakenra
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

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests