}
public void insertNothingLabel(final FacesContext context,
final UIComponent component) throws IOException {
ResponseWriter writer = context.getResponseWriter();
UISuggestionBox suggestionBox = (UISuggestionBox)component;
final String startHtml =
"<tr id=\"" + suggestionBox.getClientId(context) + "NothingLabel\" class=\"dr-sb-int rich-sb-int " + suggestionBox.getRowClasses() +
"\" style=\"display: none;\">" +
"<td nowrap=\"nowrap\" class=\"dr-sb-cell-padding rich-sb-cell-padding\" style=\"" + this.cellPadding(context, component) + "\">";
final String endHtml = "</td></tr>";
UIComponent nothingLabelFacet = component.getFacet("nothingLabel");
if(null != nothingLabelFacet && nothingLabelFacet.isRendered()) {
writer.write(startHtml);
renderChild(context, nothingLabelFacet);
writer.write(endHtml);
}
else if (null != suggestionBox.getNothingLabel() &&
!"".equals(suggestionBox.getNothingLabel())) {
writer.write(startHtml);
writer.write(suggestionBox.getNothingLabel());
writer.write(endHtml);
}
}