[richfaces-svn-commits] JBoss Rich Faces SVN: r552 - trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Wed Apr 25 12:44:27 EDT 2007


Author: alexsmirnov
Date: 2007-04-25 12:44:27 -0400 (Wed, 25 Apr 2007)
New Revision: 552

Modified:
   trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
Log:
ignore empty strings for width and height

Modified: trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java
===================================================================
--- trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java	2007-04-25 14:22:44 UTC (rev 551)
+++ trunk/richfaces/suggestionbox/src/main/java/org/richfaces/renderkit/html/SuggestionBoxRenderer.java	2007-04-25 16:44:27 UTC (rev 552)
@@ -706,7 +706,7 @@
             attribute = def;
         }
 
-        if (attribute != null) {
+        if (attribute != null && (!attribute.equals(""))) {
             if (isShadow) {
                 attribute = String.valueOf(Integer.parseInt(attribute)
                         - SHADOW_DEPTH);




More information about the richfaces-svn-commits mailing list