Integration with HighFaces

HighFaces is a small JSF library focusing on charts. It's based on Highcharts.js. Note that HighFaces is published under an Apache V2 license, but the base library, Highcharts.js, is not. It's free for non-commercial use, but you have to buy a license for commercial use.

Prerequisites

  • HighFaces requires Mojarra. It's not compatible with MyFaces.
  • Please use HighFaces 1.3 or above. The previous version, 1.2, is not compatible with Mojarra 2.3.
  • HighFaces 1.2 is bundled with jQuery 1.1.2. By default, this version is used instead of the version of jQuery which is bundled with BootsFaces (currently 3.3.1).
    If you want to use both HighFaces 1.2 and a current version of jQuery, you have to add jQuery to the <h:head /> section of your JSF page. You also need to rename the file name - HighFaces expects it to end with "jquery.js".
    (According to the author of HighFaces, this is going to change with HighFaces 1.3. Most likely, the algorithm detecting jQuery will be more flexible).

Example

HighFaces works with BootsFaces out-of-the-box. Just add the library to your project, add the namespace to the header of the JSF file, and you're good to go:

Live preview

Interactive example

The charts play well with the AJAX API of BootsFaces:

Live preview