I've posted example #114 illustrating a technique for showing a JSF message to the user if their search produces no rows, or produces too many rows.