Author: nbelaevski
Date: 2008-06-04 15:34:57 -0400 (Wed, 04 Jun 2008)
New Revision: 8905
Modified:
branches/3.1.x/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
Log:
Minor optimization for SuggestionBoxRenderer
Modified:
branches/3.1.x/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
===================================================================
---
branches/3.1.x/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2008-06-04
17:20:34 UTC (rev 8904)
+++
branches/3.1.x/ui/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java 2008-06-04
19:34:57 UTC (rev 8905)
@@ -777,13 +777,15 @@
renderChild(context, nothingLabelFacet);
writer.write(endHtml);
}
- else if (null != suggestionBox.getNothingLabel() &&
- !"".equals(suggestionBox.getNothingLabel())) {
- writer.write(startHtml);
- writer.write(suggestionBox.getNothingLabel());
- writer.write(endHtml);
+ else {
+ String nothingLabel = suggestionBox.getNothingLabel();
+ if (null != nothingLabel &&
+ !"".equals(nothingLabel)) {
+ writer.write(startHtml);
+ writer.write(nothingLabel);
+ writer.write(endHtml);
+ }
}
-
}
/**
Show replies by date