gChart inside p:tab

Community Driven Extensions Project
Post Reply
sheq
Posts: 1
Joined: 15 Aug 2014, 08:40

21 Jan 2015, 13:16

Hello,

i want to use a gChart inside a p:tab unfortunately it is not rendered and the Console output says: ReferenceError: google is not defined.
If i put a chart outside and inside the tab, both will be rendered.
Is there a way to get it to work inside the tab only?

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

23 Jan 2015, 20:02

What is the version of PrimeFaces? This issue is something similar to hidden container mismatch but the required js resource is not loaded.Anyway we will inform this to respective component author.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

matteoegidi
Posts: 1
Joined: 23 Mar 2014, 00:40

04 Feb 2015, 19:09

Hello guys,

it's possible assign the onSelected method to the GChartType.ORGANIZATIONAL so that
when the user click a node, the bean saves the corresponding value?

Thank you

francesco.strazzullo
Posts: 54
Joined: 25 Nov 2011, 10:14

08 Feb 2015, 15:02

sheq wrote:Hello,

i want to use a gChart inside a p:tab unfortunately it is not rendered and the Console output says: ReferenceError: google is not defined.
If i put a chart outside and inside the tab, both will be rendered.
Is there a way to get it to work inside the tab only?
Hi Sheq, As you can see here http://www.primefaces.org/showcase-ext/ ... tional.jsf the gChart it's used inside a p:tab. Can you create a github repository to help me replicate the error?
Primefaces: 3.5
Mojarra: 2.1.18
Tomcat: 7.0.20

ybadoo
Posts: 1
Joined: 11 Feb 2015, 19:57

11 Feb 2015, 20:05

Hello,

I want to use a gChart inside a p:tabView with property dynamic='true', but unfortunately it is not rendered.

If i set the property dynamic='false' the chart is rendered normally.

Libraries used:
primefaces-5.1.jar
primefaces-extensions-3.0.0.jar

Thanks!

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

19 Feb 2015, 16:37

@francesco: I think you have to use the hidden container logic or similar "lazy init" logic. Do you know what I mean?

@sheq You can create an issue in our issue tracker.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests