PrimeFaces is an open source JSF 2.0 component library that has more than 100 component sets. JavaServer Faces (JSF) is a server-side UI component framework for Java-based Web apps. JSF is standard on Java EE, is component- and even-driven, and, together with PrimeFaces, creates a flexible environment for offshore Java development. PrimeFaces 3.0 M4 is the latest version - the earlier versions are christened 2.2 and 2.2.1. PrimeFaces has only a single jar called primefaces-{version}.jar. Companies that outsource Java development can use PrimeFaces for JSF 2.0. Creating attractive UI components is essential for Java developers to increase attractiveness and slash development cost/time and is advantageous for entities that offshore Java development.
Why PrimeFaces makes more sense
Rich UI component sets, e.g., DataTable, AutoComplete, HtmlEditor, Charts
No additional xml configuration required and no dependencies
Ajax built in based on JSF 2.0 Ajax APIs
Themes provide more than 25 skinning options
Native Ajax Push support through websockets
Mobile UI kit to develop Web applications for handheld devices like iPhone, Palm, BlackBerry, etc.
Widespread and active user community
Comprehensive documentation and example codes
Downloading PrimeFaces
There are two ways to download PrimeFaces. Either you download the jar from PrimeFaces homepage or, if you are a maven user, you can define PrimeFaces jar as a dependency. PrimeFaces requires a Java 5+ runtime and a JSF 2.0 implementation as mandatory dependencies.
Examples of PrimeFaces 3.0 M4 component suite
AccordianPanel: a container component that displays content in stacked format. It consists of one or more tabs and each tab can group any content. It allows indeterminate number of tabs, disabling a tab, and multiple selection of tabs
AjaxBehavior: an extension of standard f:ajax and is attached to a component
AjaxStatus: a global notifier for ajax requests made by PrimeFaces components. It uses facets to represent the request status, e.g., start and complete -start facet will be on when an ajax request is started and when the response is received, complete facet shows up.
AutoComplete: a tool providing live suggestions when an input is being typed by the user. Suggestions are loaded by making a server-side call with a parameter which is the text entered
BreadCrumb: a navigation component providing contextual information about page hierarchy in the work flow. Start by defining the child menu item components, which can be expanded or collapsed - supports dynamic and animated menus as well
Button: an extension to the standard:button component with skinning ability
Calendar: an input component to select a date featuring display modes, paging, localization, ajax selection, etc.
Captcha: a form validation component based on Recaptcha API
Charts: a tool to display graphical data in the form charts e.g., pie, bar, line charts
JavaScript API
PrimeFaces renders JavaScript seamlessly which separates behavior from the html. jQuery version 1.6.4 provides the client-side engine. PrimeFaces is the major JavaScript object providing utilities and namespace. PrimeFaces is a main front-end and the back-end can be any enterprise application framework like Spring Cre, Spring Roo, Spring WebFlow, EJBs, CDI, etc., which translates into flexible offshore Java development.
No comments:
Post a Comment