Page 1 of 1

Extend Primefaces

Posted: 14 Jun 2018, 17:48
by markusg80
Can someone help me and provide some information to start extending Primefaces with new components. I like to develop components that are compatible with Primefaces and use Primefaces Widgets for example.

Re: Extend Primefaces

Posted: 14 Jun 2018, 21:23
by tandraschko
Look at the PrimeFaces Extensions source in GitHub, thats probably the best source.
None of us has sadly written a guide for it. (@melloware, rapster, ... - some interessted? :D)

Re: Extend Primefaces

Posted: 14 Jun 2018, 21:39
by markusg80
Ok i take a look at 😉 i like to write a chart.js jsf component that is compatible eith primefaces. The chart component of Primefaces not looks fine and not support features like grouped stack barchart! It exist a bug for this Extension but it seems no one of Primefaces is intersting to rewrite the chart api.

Re: Extend Primefaces

Posted: 14 Jun 2018, 22:07
by ravihariharan
https://github.com/hatemalimam/ChartistJSF

Have a look at this for chartist-js

Re: Extend Primefaces

Posted: 14 Jun 2018, 22:35
by markusg80
Yes i know about ChartistJsf. But it doesnt support Group Stacked Barcharts. Its also not possible to use Google Charts because its not allowed to host Google Charts Script on my own Server. And my Company Policy not allow to run Scripts from other domains. Highcharts is very expensive. Primefaces dont want to rewrite the Chart API. So i end up to write my own. Maybe later i can contribute code to Primefaces ;)

Re: Extend Primefaces

Posted: 15 Jun 2018, 09:47
by tandraschko
If you found a bug, you can just create a issue + provide a PR as bugfix ;)

And no, i don't want to reinvent the wheel, invest many weeks to write a chart API. You know that its very expensive and no one pays it when there are so many alternatives ;)

I personally use AnyChart and you can easily build the whole chart with json. There is no need for a component.