Top

Blog

PrimeFaces / Blog (Page 70)

It's not secret that JSF is not the best testable web framework of all. When it comes to Unit Testing JSF backing(managed-bean) logic, the reason for this is quite obvious. At some point when programming the backend logic of your page, you need to use FacesContext to access FacesMessages, session or etc. So how this can be avoided? PrimeFaces Optimus features an IOC container built on top of Google Guice that goes beyond the capabilities of JSF's core...

I'm pleased to announced that new versions of two PrimeFaces subprojects are released. UI Components 0.9.2 and Optimus 0.8.0 binaries are available at Prime Maven repository and project's google code page. UI Components 0.9.2 UI Components 0.9.2 includes important performance updates, new components and improvements on Partial Page Rendering infrastructure. Significant changes of this release are as following. New component : Wizard New component : Layout Framework New component : Growl New component : Stack New component : Collector Every resource that is included...

Wizards, Conversations, Workflows in web development. Whatever you call it, it's not trivial to deal with these properly. PrimeFaces wizard component features an AJAX powered UI and built-in partial validation to implement a conversation in a single JSF page. In the following example there're 3 tabs corresponding to each steps of the flow and last tab is for confirmation. This is the userWizard bean, which is simply at viewScope to span multiple requests. Session scope will work...

From wikipedia, "Rich Internet Applications are web applications that have most of the characteristics of desktop applications."  Well I've tried to go a little bit beyond these characteristics and create a real mock desktop web application. It's called Mock OS X :) and created with PrimeFaces. Example is built with several PrimeFaces components such as dialog, dock, growl, menubar and so on. It's not very functional however sets a nice base example to start with. It took...

Star based ratings are common in content driven web applications and PrimeFaces provides an out of the box solution for this. Rating component allows users to submit a rating using stars and also with Ajax RateEvent it's possible to mark something just like in gmail where you mark an email with a star. Basic Usage [crayon-592d03e52b436967731817/] The output would be; Number of Stars By default 5 stars are displayed, this can be configured with the stars option. Ajax RateEvent and RateListener RateListeners are...

PrimeFaces 0.9.1 introduced a very handy component that forces an input to fit in a defined mask as input is being typed. Mask definition is generic so you can define any format you want. Following are just a couple of examples.   The output of this example would be; You can try the inputMask on the prime showcase application that's available online....

PrimeFaces UI Components 0.9.1 is available to download as of today. This release introduces many new features and closes a total of 35 issues. New component: Drag&Drop New component: Media New component: InputMask New component: Dock New component: OutputPanel Reimplemented accordionPanel with jQuery Pre and Post processors for pdf-excel data exporter This release is highly effected by my 3 week vacation in Turkey and moving my house in London:) Despite all these we had many new features and important bug fixes reported by PrimeFaces...

Upcoming PrimeFaces 0.9.1 UI will feature a dock component that mimics the famous dock in Mac Os X in a web page. Basically a dock consists of the dock itself and the dockItems. You can have as many dockItems as you want. Head over to the online demo to see dock live....

It's been frequently asked on PrimeFaces Forum to make prime-showcase demo available for download. Well, it is now :) http://repository.prime.com.tr/org/primefaces/prime-showcase/1.0.0-SNAPSHOT/ We'll never release it so the version will always be 1.0.0-SNAPSHOT however the war file will be deployed periodically to include updates. Also java sources are added to war package....