Top

Blog

PrimeFaces / Blog (Page 71)

PrimeFaces features a resizable component that has the ability to make a JSF component resizable. Resizable can be used on various components like resize an input fields, panels, menus, images and more. To make a component resizable, just add p:resizable as a child; That's it now an image can be resized by the user if he/she wants to see more detail:) Another common use case is the input fields, if users need more space for a textarea, make it resizable...

There are traditional ways to display confirmation dialogs both in web and desktop applications. For example with swing JOptionPane showConfirmDialog can display a confirmation box to the user. On the other side, the legacy solution is to use javascript confirm function by attaching it an an event like onclick="return confirm('You sure?')"; Problem is confirm boxes are ugly, lacks customization support and may be blocked by browsers. A much better way to display confirmation dialogs is to...

Last week, I've written about the flash based chart components of PrimeFaces. Another nice feature I didn't mention yet is that, charts are capable of displaying live data based on polling. As an example, suppose there's an ongoing vote between two candidates and a pie chart displays the current status of the vote. Check out the Online Demo of Live Data on Charts If you're wondering about how it works, check out the link above to see the...

PrimeFaces provides a captcha component based upon popular api reCaptcha. The component is actually an input component and has a built-in CaptchaValidator, this allows to integrate the reCaptcha well to JSF lifecycle since an invalid answer would cause a ValidatorException. Getting started with captcha; 1. Sign up for keys reCaptcha is a webservice and you need two keys in order to communicate with their verify server. You can sign up and get these keys for domain. The link is :...

This is the first entry of a series "PrimeFaces Diary" demonstrating the features included in PrimeFaces library. Thanks to my friend Matthias Wessendorf for suggesting the name of the series. This entry is about JSF charting and the solutions provided by PrimeFaces UI component suite. I've done a lot of work about integrating charts and JSF in the past, maybe you've heard of "JSF ChartCreator" which uses JFreechart as the underlying engine. Although there're various types of...