myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grantsm...@apache.org
Subject svn commit: r428571 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/suggest/InputSuggestRenderer.java
Date Thu, 03 Aug 2006 23:46:35 GMT
Author: grantsmith
Date: Thu Aug  3 16:46:34 2006
New Revision: 428571

URL: http://svn.apache.org/viewvc?rev=428571&view=rev
Log:
A condition occured where sometimes the suggest list for inputSuggest was empty. This was
caused by an empty <DIV> block with a choice of -1. This caused errors in the components
javascript (suggest.js line 117 as of this revision). This quick fix simply skips over the
erroneous Map entry and doesn't render the empty block.

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/suggest/InputSuggestRenderer.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/suggest/InputSuggestRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/suggest/InputSuggestRenderer.java?rev=428571&r1=428570&r2=428571&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/suggest/InputSuggestRenderer.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/suggest/InputSuggestRenderer.java
Thu Aug  3 16:46:34 2006
@@ -163,6 +163,7 @@
         while (i.hasNext())
         {
             String choice = (String) i.next();
+            if(choice.compareTo("-1")==0) continue;
             String text = (String) choices.get(choice);
             out.startElement(HTML.DIV_ELEM, null);
             out.writeAttribute(HTML.ID_ATTR,



Mime
View raw message