Page 1 of 2

Second tab does not show chart

Posted: 05 Apr 2016, 15:53
by soekris
Second tab does not show chart on mobile

Code: Select all

 <p:accordionPanel>
      <p:tab title="Month queries">
            <p:chart type="bar" model="#{chartView.barmonth}" style="height:300px"/>
      </p:tab>
       <p:tab title="Daily queries">
             <!-- THIS CHART IS NEVER RENDERED -->
            <p:chart type="bar" model="#{chartView.bardaily}" style="height:300px"/>
  </p:accordionPanel>

  <!-- OUTSIDE Accordion BOTH WORK AS EXPECTED -->  
 <p:chart type="bar" model="#{chartView.barmonth}" style="height:300px"/>
 <p:chart type="bar" model="#{chartView.bardaily}" style="height:300px"/>
  

VOID TAB HTML CODE

Code: Select all


<div class="ui-collapsible-content ui-body-inherit" aria-hidden="false" style="">
<div id="form1:first:j_idt18:j_idt24" style="height:300px"></div>
<p></p>
</div>




Tested with 5.3.10

Re: Second tab does not show chart

Posted: 08 Apr 2016, 08:56
by mert.sincan

Re: Second tab does not show chart

Posted: 08 Apr 2016, 13:35
by soekris
First and the most important: Thanks Aragorn, not for this, for all your hard work specially in themes forum. A great part of success of themes is your hard work, as a designer and most probably as a staff support.

Second: In the meanwhile for those who are facing same problem, a workaround can be to play with <p:ajax event="tabChange" listener="#{chartView.onTabChange}"> and inside event update charts with a RequestContext update.

Thanks again

Re: Second tab does not show chart

Posted: 10 Apr 2016, 13:14
by mert.sincan
Thanks very very much for your thoughts :) :) :)
Second: In the meanwhile for those who are facing same problem, a workaround can be to play with <p:ajax event="tabChange" listener="#{chartView.onTabChange}"> and inside event update charts with a RequestContext update.
- I think it is a good solution. +1

(I love Barcelona!!)

Re: Second tab does not show chart

Posted: 11 Apr 2016, 18:36
by soekris
You are welcome!

Re: Second tab does not show chart

Posted: 16 Apr 2016, 07:32
by jibon2016
This post is very essential for a mobile user.

Re: Second tab does not show chart

Posted: 16 Apr 2016, 07:34
by jibon2016
This is good post

Re: Second tab does not show chart

Posted: 26 Apr 2016, 09:04
by mert.sincan
Thanks :)

Re: Second tab does not show chart

Posted: 13 May 2016, 16:41
by quangmung6688
I also am getting this error . not know how to solve the stars

Re: Second tab does not show chart

Posted: 13 May 2016, 21:16
by mert.sincan
quangmung6688 wrote:I also am getting this error . not know how to solve the stars
Hi,
This issue is fixed for 5.3.11 and 6.0; https://github.com/primefaces/primefaces/issues/1307