Tag: Java EE

  • Hudson Hell

    For a while now I’ve been meaning to get Hudson installed and running but what with one thing and another I’ve always put it off (I put it down to being a lone developer). What with everything else going on things like Hudson get pushed to the back of the queue all the time even…

  • Setting a value to null with EL

    Beginning with Expression Language (EL) 2.2 it is possible to call method with arguments. I feel that most of the time it is generally a good idea to try not to use this feature because it breaks the KISS principal but when you need it it can be a life saver.

  • 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…

  • 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…

  • Programatically Adding Ajax Actions to UIComponents

    One of the projects I’m currently working on requires me to build a component tree dynamically. To complicate matters the components also require ajax functionality – in this case they are panels that need to be closed and notify a listener.

  • Dynamic Dashboard with PrimeFaces – Part 2

    After putting together the first page on writing a dynamic dashboard with PrimeFaces I descovered that the method I had come up with wasn’t as good as it could have been. Most noteably it didn’t work properly when the dashboard was updated via a partial page refresh. Typically that type of update would result in a…

  • Dynamic Dashboard with PrimeFaces

    I do a fair bit of work with the PrimeFaces JSF library and it is, IMHO, the best set of JSF widgets currently available. PrimeFaces has an excellent demonstration site as well which gives examples of the most common usage patterns of each widget available. Occasionally though it’s necessary to stray outside what is demonstrated…

  • Unable to set request character encoding to UTF-8

    While developing my current application I’ve been seeing dozens of error messages like this: WARNING: PWC4011: Unable to set request character encoding to UTF-8 from context /foo, because request parameters have already been read, or ServletRequest.getReader() has already been called and after searching high and low for a solution I eventually found one.

  • Simple CRUD Example – Part 2

    In the last article I showed you how to create a Debry database and set up a persistence unit. In this article I’ll create a very basic CRUD application. Using JSF 2, JPA 2 and EJB 3.1.

  • JPA2 Serialized Blob Never Really Null

    This one got me late on a Friday (actually after work so I was doubly frustrated) and is to do with how JPA2 persists attributes of items that are not of basic Java types and which are also not entities. In order words attributes that implement Serializable and get shoved into BLOB fields.

  • Glassfish 3.1 Exception While Loading

    I recently switched over to using GlassFish 3.1 and then 3.1.1 from 3.0 and I so wish I hadn’t. The 3.1 release doesn’t seem to have bought any new toys but it’s brought a whole host of bugs and weird behaviour. The latest piece of oddness described here has just wasted a couple of hours…

  • Maven Build Problem with JDK 7

    I recently upgraded my system from Java 6 to Java 7. Over all I’m really pleased with the improvement I’m seeing from Java 7 but the upgrade has come with a little cost. For some reason I’m getting a failure in NetBeans when I try to deploy one of the web applications that I’m working…