myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r956810 - /myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/InRenderer.java
Date Tue, 22 Jun 2010 08:14:23 GMT
Author: lofwyr
Date: Tue Jun 22 08:14:22 2010
New Revision: 956810

URL: http://svn.apache.org/viewvc?rev=956810&view=rev
Log:
TOBAGO-896: Input suggest
 - avoid exception, when the list is empty

Modified:
    myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/InRenderer.java

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/InRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/InRenderer.java?rev=956810&r1=956809&r2=956810&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/InRenderer.java
(original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/InRenderer.java
Tue Jun 22 08:14:22 2010
@@ -47,6 +47,7 @@ import javax.faces.validator.Validator;
 import java.io.IOException;
 import java.util.ArrayList;
 import java.util.Arrays;
+import java.util.Collections;
 import java.util.List;
 
 public class InRenderer extends InputRendererBase {
@@ -295,6 +296,8 @@ public class InRenderer extends InputRen
       } else {
         throw new IllegalArgumentException("Cant create AutoSuggestItems from " + object);
       }
+    } else {
+      autoSuggestItems.setItems(Collections.<AutoSuggestItem>emptyList());
     }
     return autoSuggestItems;
   }



Mime
View raw message