Blog Archives

PrimeFaces – actions not firing in last rows of dataGrid

Introduction Have you been at your wit’s end trying to work out why your action just won’t fire? Have you exhausted BalusC’s list of potential reasons? Does it happen to be just the last couple of buttons that don’t work,

Tagged with: , , , ,
Posted in Java

Setting JSF components conditionally read-only through custom components.

Introduction There are a number of different reasons why you would want to disable input for sections of a page. Most obviously is the case where information should be readonly, pending certain conditions – perhaps access roles, perhaps something as

Tagged with: , ,
Posted in Java

PrimeFaces – where are my widgets?

Widget for var ‘Widget for var ‘dlg’ not available! The Tears Does that fuel you with a deep, burning rage? Widgets not being available are insanely frustrating, especially because deep down you know it’s going to be because of a

Tagged with: , ,
Posted in Java

Extracting Values from a JSF UIComponent

Pulling a value off of a component – sounds easy enough? Well, it is, but there’s a little gotcha that BalusC was kind enough to explain for me. The UIComponent provides a .getAttributes() that returns, as expected, a map containing the

Tagged with: ,
Posted in Java

PrimeFaces commandButton update issues

The Problem I’ve recently been working with some PrimeFaces components. In general they’ve been fairly awesome to use, but either I’ve been looking for documentation in all the wrong places or they aren’t documented very well. The PrimeFaces commandButton is, by

Tagged with: ,
Posted in Java

Database upgrades from jBPM 5.4 to jBPM 6

Introduction I’ve recently had to convert a currently in-use production system running in jBPM 5.4 to jBPM 6. The jBPM 6 team did make an attempt to make the upgrade process fairly easy by ensuring that they only added columns

Tagged with: , ,
Posted in Java

REST service GZIP encoding support for Spring and Android Annotations

Introduction We’re working on an Android application that will be largely community based, so there’s a lot of information going back and forwards. Our target phones are extremely low-tech though – Android 2.3 and Edge are the platform we’re aiming

Tagged with: , , , ,
Posted in Java

Generating South African ID Numbers

Introduction An ID number is a basic requirement for various online applications. There are two ways we can take advantage of ID numbers – we can verify them using their check digit to ensure that the user entered their ID

Tagged with: , ,
Posted in Javascript, Math

Annotations with Meaning

Background There are some annotations which exist not to directly offer functionality but as a helper for the developer and for the developers which follow. There are some annotations which should exist, but have yet to reach the public eye.

Tagged with: , , ,
Posted in Java

JSP’s Date Converter – Yesterday’s Today’s Problem

Strange Days Indeed We ran into a strange problem that had crept by us undetected due to the overlapping effects of two only partially-connected issues. The requirements were fairly basic – display a list of items, along with a starting

Tagged with: , , , , , ,
Posted in Java