string « Seam « JSF Q&A

1. How to output a string attribute on an object that may be be null

As part of a dataTable in a seam JSF page, one column requires the output of a name:

<h:outputText value="#{}"/>
The problem is that "staffMember" may be null on some listings, so I ...

2. strange "String index out of range: 0" error

I have a huge application and at some point, when a redirect is involved i received this strange error:

Caused by java.lang.StringIndexOutOfBoundsException with message: "String index out of range: 0"   ...

3. Accessing public static final String constants in EL

Possible Duplicate:
How to reference constants in EL?
I have a Seam JSF application. I have a class which has
public static final String BLAH_STR = ...