Schedule not rendered when inside a tab

UI Components for JSF
Post Reply
ufasoli
Posts: 42
Joined: 05 May 2010, 19:55

30 Dec 2010, 17:15

Hi,
I have realized that when a schedule is placed inside a tab, it is not rendered properly if the tab is not the first one to be shown

Code: Select all

<p:tabView  >

<p:tab title="tab 1">

...
</p:tab>

<p:tab title="tab 2">

<p:schedule value="#{myBean.myModel}" rendered="true" />
</p:tab>



</p:tabView  >
the first time the tab containing the schedule is shown the schedule is not properly rendered ( only the headers are displayed) but as soon as the window gets resized or the month is changed it is displayed properly.

I managed to overcome this problem by either having the tabview set to "dynamic" or by faking a resize on the window DOM object

Code: Select all


jQuery(window).resize() 

while searching inside the fullcalendar documentation I found out that you can force the calendar to resize by passing an argument 'render' to the constructor

more info here : http://arshaw.com/fullcalendar/docs/display/render/

would it be possible to include this parameter in the primefaces schedule component ?

Using :

Primefaces 2.2RC2
Mojarra 2.0.3
Glassfish 3.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 53 guests