You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2005/07/11 14:38:20 UTC

svn commit: r210110 - in /myfaces: examples/trunk/simple/ajaxInputSuggest.jsp sandbox/trunk/src/java/org/apache/myfaces/custom/ajaxsuggest/AjaxInputSuggestRenderer.java

Author: mmarinschek
Date: Mon Jul 11 05:38:19 2005
New Revision: 210110

URL: http://svn.apache.org/viewcvs?rev=210110&view=rev
Log:
changed style to match original one. changing of style will follow tomorrow

Modified:
    myfaces/examples/trunk/simple/ajaxInputSuggest.jsp
    myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/ajaxsuggest/AjaxInputSuggestRenderer.java

Modified: myfaces/examples/trunk/simple/ajaxInputSuggest.jsp
URL: http://svn.apache.org/viewcvs/myfaces/examples/trunk/simple/ajaxInputSuggest.jsp?rev=210110&r1=210109&r2=210110&view=diff
==============================================================================
--- myfaces/examples/trunk/simple/ajaxInputSuggest.jsp (original)
+++ myfaces/examples/trunk/simple/ajaxInputSuggest.jsp Mon Jul 11 05:38:19 2005
@@ -31,6 +31,9 @@
 <f:view>
 
    <h:form>
+       <style type="text/css">
+            ul.ajaxList li.selected { background-color: #ffb; }
+       </style>
        <s:ajaxSuggest   suggestedItemsMethod="#{ajaxInputSuggest.getItems}" />
 
        <x:inputCalendar renderAsPopup="true" />

Modified: myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/ajaxsuggest/AjaxInputSuggestRenderer.java
URL: http://svn.apache.org/viewcvs/myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/ajaxsuggest/AjaxInputSuggestRenderer.java?rev=210110&r1=210109&r2=210110&view=diff
==============================================================================
--- myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/ajaxsuggest/AjaxInputSuggestRenderer.java (original)
+++ myfaces/sandbox/trunk/src/java/org/apache/myfaces/custom/ajaxsuggest/AjaxInputSuggestRenderer.java Mon Jul 11 05:38:19 2005
@@ -163,7 +163,7 @@
                 uiComponent.getClientId(context))});
 
         StringBuffer buf = new StringBuffer();
-        buf.append("<ul>");
+        buf.append("<ul class='ajaxList' style='list-style-type:none;margin:0px;padding:0px;'>");
 
         for (int i = 0; i < li.size(); i++)
         {