gchart reference error

Community Driven Extensions Project
Post Reply
rockingaround
Posts: 8
Joined: 27 Dec 2016, 11:14

02 Feb 2017, 14:18

Hello,
I'm trying to try to implement a gchart according to the examples on http://www.primefaces.org/showcase-ext/ ... ltiple.jsf but the page seems empty and the browser has this error
ReferenceError: PrimeFacesExt is not defined
I've read online that primefaces tags should be used at least once in the page but since

Code: Select all

<pe:gChart  
    value="#{multipleSeriesGChartController.chart}"  
    title="Company Performance"/>  
              
is a primefaces tag I couldn't actually get the problem. Can you help?
Thanks in advance.

User avatar
Melloware
Posts: 271
Joined: 22 Apr 2013, 15:48

02 Feb 2017, 14:41

What version of Extensions are you using?
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces 6.1.X / PF Extensions 6.1.5

rockingaround
Posts: 8
Joined: 27 Dec 2016, 11:14

02 Feb 2017, 15:00

4.0.0

User avatar
Melloware
Posts: 271
Joined: 22 Apr 2013, 15:48

02 Feb 2017, 15:07

Some suggestions...

PFE 4.0.0 can only be used with PF 4.X branch. Are you using it with PrimeFaces 4.X?

Make sure you don't have multiple PF Extensions JARs in your path?
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces 6.1.X / PF Extensions 6.1.5

rockingaround
Posts: 8
Joined: 27 Dec 2016, 11:14

02 Feb 2017, 15:13

Current PrimeFaces version is 5.3. I have a working extension function in my project, but can't seem to make gcharts work

User avatar
Melloware
Posts: 271
Joined: 22 Apr 2013, 15:48

02 Feb 2017, 17:12

Well you have everything correct as far as versions.

I would say try PF 6.0 with PFE6.0.0 to see if the issue is already fixed?
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces 6.1.X / PF Extensions 6.1.5

rockingaround
Posts: 8
Joined: 27 Dec 2016, 11:14

07 Feb 2017, 15:32

Yes the issue is fixed now. Thank you. Another question about gchart. Does the gchart library support line charts like, https://goo.gl/images/xw1zry ?

User avatar
Melloware
Posts: 271
Joined: 22 Apr 2013, 15:48

07 Feb 2017, 15:45

I am looking at the code and currently it looks like it only supports these charts...

Code: Select all

	PIE("PieChart"),
	AREA("AreaChart"),
	BAR("BarChart"),
	GEO("GeoChart"),
	ORGANIZATIONAL("OrgChart"),
	COLUMN("ColumnChart");
You can use PF Charts if you need a line chart?

It looks like Google does support Line Charts but the current PFE component does not support them.

https://developers.google.com/chart/int ... cs/gallery
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces 6.1.X / PF Extensions 6.1.5

User avatar
Melloware
Posts: 271
Joined: 22 Apr 2013, 15:48

10 Feb 2017, 03:11

I created this: https://github.com/primefaces-extension ... issues/441

And it will be included in PFE 6.1.
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces 6.1.X / PF Extensions 6.1.5

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests