PrimeFaces is a popular open-source UI component library for JavaServer Faces (JSF) with a rich set of over 100 components for enterprise web applications. The npm package 'primefaces' provides TypeScript type definitions for PrimeFaces client-side JavaScript API. Version 14.0.0 is the current stable release as per the given data, but the latest tagged release is 15.0.14. The library has a high release cadence (multiple minor releases per month) and is actively maintained by the PrimeFaces team. Key differentiators include extensive theme support, built-in AJAX, and a large component set. Peer dependencies include hammerjs, component-emitter, keycharm, propagating-hammerjs, and uuid for gesture and event support.
npm install primefacesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing PrimeFaces types, using the global PF function, accessing PrimeFaces settings, making an AJAX request, and calling a widget method.
Review type changes in component options interfaces (e.g., DialogOptions, DataTableOptions). Check migration guide.
Replace widget.update() with widget.refresh()
Include primefaces.jar in your Java web app or use a CDN. The npm types are for client-side type checking only.
Update jQuery types to version compatible with jQuery 4.0.0 (e.g., @types/jquery@4.x). Test custom scripts.
Use the new filter signature: filter(field, value, type) with optional parameters.
Add a declaration file (e.g., globals.d.ts) with declare const PF: (id: string) => any; or use a triple-slash directive.
Update column width expressions that use calc() to use the new syntax as per migration notes.
Import with side-effect: import 'primefaces'; Then use PrimeFaces as a global.
Import the primefaces package: import 'primefaces'; This adds global declarations for PF and PrimeFaces.
Ensure PrimeFaces JavaScript library is included (e.g., via JSF tag or script tag). The npm types only provide type checking, not the runtime.
Use import 'primefaces'; instead of import Something from 'primefaces';.