string « Seam « JSF Q&A





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

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

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

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

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    stackoverflow.com

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