gChart Broken after 6.0.13
Posted: 15 Jun 2017, 03:37
I have a web app where the only thing I changed was primefaces was updated from 6.0.13 to 6.0.19 (with PF-ext 6.0.0) and it seems as if gChart broke somewhere in between. I need to renew my elite membership, so I don't currently have access to the version in between. With 6.0.13, everything worked as expected, but now on 6.0.19 I get the following error:
It looks let the json data has an extra escape character in it?
I've updated to PF 6.1.1 with PF-Ext 6.1.1 and I get the same error.
Code: Select all
VM3563:1 Uncaught SyntaxError: Unexpected token \ in JSON at position 1
at JSON.parse (<anonymous>)
at Class.init (http://localhost:8080/powerptc/javax.faces.resource/primefaces-extensions.js.html?ln=primefaces-extensions&v=6.0.0:40:133)
at Class.prototype.(anonymous function) [as init] (http://localhost:8080/powerptc/javax.faces.resource/core.js.html?ln=primefaces&v=6.0.19-SNAPSHOT:1915:26)
at new Class (http://localhost:8080/powerptc/javax.faces.resource/core.js.html?ln=primefaces&v=6.0.19-SNAPSHOT:1928:19)
at Object.createWidget (http://localhost:8080/powerptc/javax.faces.resource/core.js.html?ln=primefaces&v=6.0.19-SNAPSHOT:311:47)
at Object.cw (http://localhost:8080/powerptc/javax.faces.resource/core.js.html?ln=primefaces&v=6.0.19-SNAPSHOT:296:18)
at http://localhost:8080/powerptc/protected/admin/graphs/fillratio.html:63:345
Code: Select all
{\"type\":\"PieChart\",\"options\":{},\"data\":[[\"Topping\",\"Slices\"],[\"Mushrooms\",2],[\"Onions\",22]]}