PlotFaces Design Discussion

PlotFaces takes a different, more code based, approach to charting than other JSF libraries and as such you won’t see hundreds of attributes on the JSF chart tags. For simple charts an attribute base approach to configuration works well. For example a page author could specify the x-axis label with an attribute like this xaxislabel=”foo” and never need to get near anything that looks like code. The problem comes though when you want to expose forty different axis options for twelve different axes which is perfectly possible with jqPlot – placing 500+ attributes on an element is not a solution that is going to work.Continue reading

PlotFaces Task List

PlotFaces is evolving quickly at the moment so rather than clutter the bug tracker with every little thing that I come across that needs fixing or improving I’m currently maintaining a list here. Once I’m happy PlotFaces is broadly feature complete and bug free I’ll switch over to using the bug tracker. Rest assured the vast majority of these issues are with the demonstration application rather than PlotFaces.Continue reading

PlotFaces Introduction

PlotFaces is a suite of JSF components built on top of the excellent jqPlot JavaScript charting library. The aim of PlotFaces is to make it simple for programmers to create great looking JavaScript based charts whilst also exposing the rich set of configuration options jqPlot offers. Continue reading

PrimeFaces p:fileUpload not Appearing

I hit this issue with the PrimeFaces p:fileUpload component this morning and it had me going for about an hour until I figured out what was wrong. A good googling shows that more than a few people have hit this problem but no one had reported a solution, there was even a bug report closed as can’t reproduce.Continue reading

Providing EL Access for Beans

There are a lot of good ideas in JEE but there are also some sharp corners that the unwary developer could hurt themselves on. Over the next few articles I’m going to point out a few of these less than brilliant pieces of design so that hopefully you’ll be able to avoid them. This article is about providing Expression Language (EL) access to managed beans.Continue reading

Dynamic DataTable with JSF 2.0

A project I’m working on recently presented me with the problem of totally dynamically creating a data table on a JSF page. At first sight I assumed this would be fairly trivial since I had created a number of other components dynamically with no problems. The difference though was that the other components (for example a line chart) were backed by a clear model and they just displayed the data the model provided. A data table on the other hand is typically provided with a list of objects and columns then pick pieces of data for display.Continue reading

JSF Object Not Found

I recently decided to try writing my own JSF component as I had a need that wasn’t met by the excellent PrimeFaces component library. I had read some horror stories about how hard it is to write custom components so I’d put off doing it as I didn’t want to get bogged down when I had so much else to be getting on with. In reality it turned out to be quite simple but that’s another story.Continue reading