Top

Blog

PrimeFaces / Blog (Page 71)

I've added another sample to TouchFaces showcase applications, this one is called TwitFaces allowing to view someone's tweets in your iphone. The app integrates with twitter rest api and created with TouchFaces mobile JSF kit of PrimeFaces. Let's begin with TwitterService [crayon-59cab3c19ea36058890213/] And TwitterRSSService, the RSS based implementation using Rome. [crayon-59cab3c19ea3c422150386/] And the JSF backing bean called TwitterController powered by PrimeFaces Optimus. [crayon-59cab3c19ea3e189332136/] Finally create your app as a JSF page, twitfaces.xhtml; [crayon-59cab3c19ea3f118256697/] That's it running twitfaces.jsf displays; TwitFaces is a very simple app, a full blown...

Two PrimeFaces modules, Optimus and FacesTrace are moved to the PrimeFaces Extensions as spin-off projects and PrimeFaces UI module is renamed as PrimeFaces.  Main goal of PrimeFaces has always been to be the ultimate JSF component suite, by this change PrimeFaces became all about UI again....

Legacy way to display binary images is to create a servlet and send the byte content as a stream. This requires a dedicated servlet and probably different servlets dealing with handling cases. PrimeFaces features a simple but powerful StreamedContent API and p:graphicImage component to display any binary image easily. This binary image could be images stored in a database or images created programmatically on-the-fly. Following are a couple examples for demonstrating how easy it is to display...

PrimeFaces brings desktop terminals to the web, p:terminal is an ajax powered JSF component to execute commands defined on server side. Usage is very simple, just place the terminal and provide a command handler. Code [crayon-59cab3c19f1aa146124206/] CommandHandler is a simple java method taking two parameters, first one is the name of the command and second parameter is an array of command arguments. [crayon-59cab3c19f1ac762438671/]   Terminal in Mock OS X I've integrated terminal to famous PrimeFaces Mock OS X, there's a terminal icon in...

Mert Caliskan posted a simple ajax performance test comparing PrimeFaces, RichFaces and Trinidad.  He used simple partial page rendering examples in demo applications which reveals PrimeFaces is 2x/3x faster than RichFaces and Trinidad. Also Alex Smirnov tested the same demo apps and got a set of different results. Well benchmark tests usually cause debates, I've also done similar tests but to improve the accuracy and cause less debates I've created three different applications rather than using showcases. All...

PrimeFaces 1.0.0.RC aka PRIMUS will introduce the new Ajax Push aka Comet features powered by Atmosphere, after doing the initial integration I've created a sample chat application for a demo. It's a simple app with login and message sending capabilities powered by http-streaming. I'll also add support for long-polling approach soon. After creating it, I took the integration one step further and using TouchFaces, created an iPhone app as a chat client. App will also work well...

Last week, I gave my "Rapid RIA with PrimeFaces" talk at an event organized by London Java Web Users Group. The session is recorded and available as a 90 minute podcast. Slides are also available at PrimeFaces project page. My next stop is JSFSummit 2009 where I'll be doing an updated version of this talk in Orlando, USA. See you there! Last week, I gave my "Rapid RIA with PrimeFaces" talk at an event organized by London JUG. The...

I am pleased to announce that new version of PrimeFaces UI Components is released. Version 0.9.3 features the TouchFaces mobile UI kit, 5 new components, improved portlet support, enhanced datatable and various improvements. TouchFaces - UI Development kit for mobile devices mainly iphone New component : FileUpload (Reimplemented) New component : Tooltip (Reimplemented) New component : PickList New component : HotKey New component : Virtual Keyboard Easy row selection, ajax pagination, data filtering and lazy loading enhancements to DataTable Significantly improved portal support for JSR168...

I've actually blogged about this topic three years ago and introduced the PagedListDataModel. That solution worked at that time with some flows in design but now after three years, I've a much better solution to the same problem. Using PrimeFaces DataTable it's a piece of cake to load millions of data lazily, just set the lazy to true and provide a LazyDataModel. Here's is how it works. [crayon-59cab3c19f716444268478/] And the lazyModel; [crayon-59cab3c19f71a734835382/] That's just it, whenever a paging event occurs with...