title: PrimeFaces chart
body: <p>i am using primefaces 3.0 in my project, i have implemented the chart in testing1.xhtml, but that page content needs to display on main.xhtml, but the chart not rendering very first time. the chart rendering after giving the refresh only, but it should not come like this .. i have attached the model snippet for ur reference.. pls kindly help me to fix this issue..</p>
  
  <p>testing1.xhtml</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;ui:composition xmlns="http://www.w3.org/1999/xhtml"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:p="http://primefaces.prime.com.tr/ui"
        xmlns:a4j="http://richfaces.org/a4j"
        xmlns:rich="http://richfaces.org/rich"
         xmlns:portlet="http://java.sun.com/portlet"
        xmlns:c="http://java.sun.com/jstl/core"&gt;
  
        &lt;h:form id="testForm"&gt;
  
        &lt;p:lineChart id="testChart"  value="#{testBean.chart}"
        style="float:left; margin-top:150px; border:0px; margin-left:0px; padding:0px; height:140px; width:230px; "/&gt; 
      &lt;h:form&gt;
  
  &lt;/ui:composition&gt;
  </code></pre>
  
  <p>i am calling this page from main.xhtml </p>
  
  <p>main.xhtml</p>
  
  <pre class="lang-xml prettyprint-override"><code>    &lt;body onLoad="loadData();" &gt;
  
          &lt;h:panelGrid style="height:33px;"/&gt;
          &lt;h:form style="margin:0px; padding:0px;"&gt;
      &lt;p:remoteCommand name="loadData" action="#{testBean.chartLoad}"  update="testChart" /&gt;
  
   &lt;p:panel  style="height:auto; width:238px;" id="testPanel" header="Testing" closable="false" toggleable="true"&gt;
                &lt;ui:include src="testing1.xhtml"/&gt;
              &lt;/p:panel&gt; 
  </code></pre>
  
  <p>thanks in advance..  </p>