janir4
Posts: 7
Joined: Mon Oct 22, 2018 6:32 pm

Problem using Gantt/Highstock navigation in JSF/Primefaces

xhtml file:
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:p="http://primefaces.org/ui">

<h:head>
<title>Project Gantt</title>
<script src="https://code.highcharts.com/gantt/highc ... "></script>
<script src="https://code.highcharts.com/stock/modul ... "></script>
</h:head>
<h:body>
<h:form>
<p:commandButton type="button" onclick="showGantt()" />
<div id="container" style="max-width: 800px;margin: 1em auto;"></div>
</h:form>

The Gantt is showing, ok, the Highstock Navigation not. Get this error in JS debug
"Uncaught TypeError: Cannot read property 'paneSelector' of undefined
at c.init (<anonymous>:2:217)...."

Any ideas?

Thanks,
janir
rafalS
Posts: 2665
Joined: Thu Jun 14, 2018 11:40 am

Re: Problem using Gantt/Highstock navigation in JSF/Primefac

Hi, Janir!

Are you able to reproduce your issue online? (jsFiddle for example)
For this moment I am not able to say anything.

Best regards!
Rafal Sebestjanski,
Highcharts Team Lead
janir4
Posts: 7
Joined: Mon Oct 22, 2018 6:32 pm

Re: Problem using Gantt/Highstock navigation in JSF/Primefac

Hi!

In jsFiddle, all is OK....
https://jsfiddle.net/d5qnejy8/

Best regards,
Jan Inge
rafalS
Posts: 2665
Joined: Thu Jun 14, 2018 11:40 am

Re: Problem using Gantt/Highstock navigation in JSF/Primefac

Jan,

I am sorry but I am not even able to debug it anyhow. If it works in jsFiddle as expected then the problem is not related to Highcharts but to 3rd party tech stack you're using.

Best regards
Rafal Sebestjanski,
Highcharts Team Lead
janir4
Posts: 7
Joined: Mon Oct 22, 2018 6:32 pm

Re: Problem using Gantt/Highstock navigation in JSF/Primefac

Hi rafalS!

Yes, I agree, just hoped someone else had run into the same problem using JSF/Primefaces and Highcharts. Thanks anyway!

Best regards,
janir

Return to “Highcharts Usage”