Top

Blog

PrimeFaces / Blog (Page 36)

FileUpload component has been rewritten from scratch to fix the problems of old one and provide new features. It is powered by HTML5 (File API) and has graceful degradation for legacy browsers (e.g. IE8, IE9). Two modes (Simple and Advanced) Multiple file selection from file dialog Progress Tracking DragDrop support from filesystem Graceful Degradation (e.g. IFrame uploads instead of XHR2) Merge mode to send all files in one request Commons FileUpload for JSF 2.1 and Servlet...

Prior to 2.2, JSF had a problem with keeping component values in case validation fails, the problem has been described in detail at; JAVASERVERFACES_SPEC_PUBLIC-1129 https://java.net/jira/browse/JAVASERVERFACES-2576 JSF 2.2 Reset Values During JSF 2.2 Specification process, I brought this up the EG hoping for a standard solution and with the help of Ed Burns, Kito Mann and other members, we came up with a new attribute called resetValues for f:ajax and f:resetValues for non-ajax requests. Thanks to Thomas Andraschko, PrimeFaces 4.0 also has...

In JSF API, UIComponent#findComponent only accepts id expressions. In the render/execute attribute of f:ajax, you can also reference components by some special keywords: @this @form @parent @all @none In PrimeFaces 3.x, we already improved the findComponent logic by adding some new features like @namingcontainer and PrimeFaces Selectors. PrimeFaces Selectors aka provides the ability to reference components by JQuery selectors e.g. (@(:input:disabled), @(.ui-datatable .ui-panel)). For PrimeFaces 4.x, we have taken this to the next level. Thomas Andraschko completely over-worked our search expression logic and created a modular framework with...

ConfirmDialog is handy when you want to provide a fancy confirmation instead of javascript confirm box, however there is one to one relationship between the confirmation source and the dialog itself meaning page author needs to create a separate confirmDialog for each action that requires confirmation. As the page grows, it becomes quite to maintain and page is bloated with confirmDialogs. To improve this in PrimeFaces 4.0, we are introducing a Global ConfirmDialog that is a singleton...

As in 2012, PrimeFaces will be at JavaOne 2013 again. This time PrimeFaces Cookbook Co-Author Mert Çalışkan and Martin Fousek from NetBeans Team will be doing a session titled "10 Tips for Java EE 7 with PrimeFaces". This session takes you on a JSF tour with the help of Java EE 7, together with PrimeFaces and the NetBeans IDE. The tour begins with an introduction of PrimeFaces and its features, such as UI components and themes. Focusing...

PrimeUI 0.9.5 is now available featuring the mighty DataTable widget. This widget is designed to consume JSON and for the initial implementation we have decided to provide the most common use cases; Local and Remote Data Pagination Sorting Single and Multiple Selection Online example is available at PrimeUI showcase demonstrating both a local json array and remote json data via a JAX-RS (Jersey) Service. In future versions we plan to add various new features ported from PrimeFaces...

3.5.8 is a new PrimeFaces Elite version that brings 30 improvements to 3.5.x series making over 150 improvements to 3.5 in total with previous Elite Releases. New Features New Component: Fragment RequestContext.showMessageInDialog(FacesMessage) API Customizable MenuButton icon position. SelectOneListbox-SelectManyMenu misses onclick and ondblclick attributes Defect Fixes DataTable default sort not applied after ajax update Events are not firing in dynamic columns header Dynamic Columns don't reflect changes on model correctly Dialog Framework - Modality lost after redirect in dialog Maxlength attribute ignored for autoComplete in multiple mode Inplace validation...

JSF 2.2 has a great feature to add dynamic attributes to a component on runtime, these attributes are called pass through attributes. PrimeFaces 4.0 is aimed to support JSF 2.0,  2.1 and 2.2 at the same time using runtime detection and lately pass through attributes support is added to 4.0; [crayon-59cab24484b86265072071/] Special thanks to PrimeFaces Friend Rudy De Busscher for his contribution regarding the implementation....

A brand new PrimeFaces Book is now available from Packt Publlishing authored by PrimeFaces and JSF expert Ian Hlavats. Instant PrimeFaces Starter is great for developers looking to get started quickly with PrimeFaces. It's assumed that you have some JSF experience already, as well as familiarity with other Java technologies such as CDI and JPA and an understanding of MVC principles, object-relational mapping (ORM), and dependency injection (DI). The sample application included with the book is fully...

Fragment component is used to define automatic partially process and update sections whenever ajax request is triggered by a descandant component. Fragment makes it easy to define partial ajax process and update without explicitly defining component identifiers. In the following example, required input field outside the fragment is ignored and only the contents of the fragment are processed-updated automatically on button click since button is inside the fragment. [crayon-59cab24484eb5876482044/] Check out PrimeFaces Showcase for the live demo! This component has...