Blog Archives

h:outputText values with named parameters

Introduction JSF supports parameter substitution out-of-the-box, but only so far as using numbered indices, which aren’t insanely easy to read or remember. For example,

This outputs “This comes out as that.” – fine for your everyday message, but when

Tagged with: , , ,
Posted in Java

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

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