Top

Blog

PrimeFaces / Blog (Page 49)

Accessibility features in PrimeFaces are getting better with each iteration. A case in point is spinner, we've added screen reader support with aria roles and state attributes in 3.1 and for 3.2, spinner gets improved keyboard and mouse support. The value of spinner now can be changed with; Clicking the spin buttons with mouse. Tabbing to the spinner and up-down arrow keys via keyboard. Moving the cursor on the spinner and scrolling with mousewheel. 3.2 adds similar accessibility features to...

For long pages that scroll, ajax updates might be confusing to the users as the updated part may not be visible in viewport. To get the user's attention, it would be nice to scroll to the updated component. PrimeFaces 3.2 provides a handy utility to implement this; [crayon-594c43233551b921407864/] When the panel component is updated, PrimeFaces will scroll to the component with a smooth animation. Check out the live demo at PrimeFaces Labs!...

Which command to submit the form with when enter key is pressed a common problem in web apps not just specific to JSF. Browsers tend to behave differently as there doesn't seem to be a standard and even if a standard exists, IE probably will not care about it. There are some ugly workarounds like placing a hidden button and writing javascript for every form in your app. To solve this problem and normalize the behavior...

Reordering datatable columns with drag and drop has been a popular feature request from PrimeFaces Community with more than 70 votes. With this motivation, we've implemented this request targeting the upcoming 3.2 release. And here is a photo from our design process we'd like to share all the math. Well, of course you don't need to care about this, just set draggableColumns attribute to true and that's it. :) Client side changes are synced with server side...

Dynamic columns has been a PrimeFaces feature for some time via p:columns component. One popular enhancement request with 70+ community votes is adding sort-filter support so we've been planning to implement it in a future version like 3.3 or 3.4. However when we needed the same thing in an application we develop for a client, it was time to speed things up. This is yet another advantage of a web framework being used by its creators. For...

PrimeFaces ProgressBar has been rewritten as a native PrimeFaces widget instead of using jQuery UI ProgressBar as we've faced with a couple of limitations for the extra features we'd like to bring in. New progressbar is backward compatible and has been enhanced with dynamic progress label display along with animations on value change. ProgressBar Demo is available at PrimeFaces 3.2 Labs....

PrimeFaces gets a new component; MegaMenu. We have been getting feature requests from the community regarding this and decided to implement this after finding out what a megamenu is by looking at this link. One nice feature of MegaMenu is the custom content support, in addition to regular submenus and menuitems, you can also place any content inside the MegaMenu. So after working on this for a day, tadaaa; Check out PrimeFaces 3.2 Labs to see MegaMenu...

We have given an interview to InfoQ about the IceFaces forking PrimeFaces code lately and we would like to make one final announcement regarding this; The link of the interview is; http://www.infoq.com/news/2012/02/primefaces-icefaces-copy As stated in the interview, our point never has been legal, PrimeFaces has Apache license which permits this, we have just wanted to spread the word that a competitor has based their code on PrimeFaces without giving enough attribution to the original work. After the first announcement...

PrimeFaces password component gets a makover for 3.2, old version was using a 3rd party jquery plugin with some mismatches with JSF and we've reimplemented the client side ourselves using native PrimeFaces scripting with theme integration and optimizations for JSF. Also fixed a couple of issues regarding positioning. One change regarding backward compatibility is the feedback option that gives password strength indicator, default value of this attribute is now false so if you have it empty, you...