Second tab does not show chart

UI Components for JSF
soekris
Posts: 76
Joined: 29 Apr 2013, 16:54
Location: Barcelona

05 Apr 2016, 15:53

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
Primefaces 5.3.X / 6.X
NetBeans 8.1
WildFly 10
Linux Mint & freeBSD


soekris
Posts: 76
Joined: 29 Apr 2013, 16:54
Location: Barcelona

08 Apr 2016, 13:35

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
Primefaces 5.3.X / 6.X
NetBeans 8.1
WildFly 10
Linux Mint & freeBSD

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

10 Apr 2016, 13:14

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!!)

soekris
Posts: 76
Joined: 29 Apr 2013, 16:54
Location: Barcelona

11 Apr 2016, 18:36

You are welcome!
Primefaces 5.3.X / 6.X
NetBeans 8.1
WildFly 10
Linux Mint & freeBSD

jibon2016
Posts: 2
Joined: 12 Apr 2016, 14:35
Location: Bangladesh

16 Apr 2016, 07:32

This post is very essential for a mobile user.

jibon2016
Posts: 2
Joined: 12 Apr 2016, 14:35
Location: Bangladesh

16 Apr 2016, 07:34

This is good post

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

26 Apr 2016, 09:04

Thanks :)

quangmung6688
Posts: 4
Joined: 30 Apr 2016, 07:14
Location: Viet Nam
Contact:

13 May 2016, 16:41

I also am getting this error . not know how to solve the stars

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

13 May 2016, 21:16

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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: jossey and 21 guests