Author: pyaschenko
Date: 2010-12-28 06:14:21 -0500 (Tue, 28 Dec 2010)
New Revision: 20825
Modified:
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/Autocomplete.ecss
trunk/ui/input/ui/src/main/templates/autocomplete.template.xml
Log:
http://jira.jboss.com/jira/browse/RF-9074
Modified:
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/Autocomplete.ecss
===================================================================
---
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/Autocomplete.ecss 2010-12-28
09:23:56 UTC (rev 20824)
+++
trunk/ui/input/ui/src/main/resources/META-INF/resources/org.richfaces/Autocomplete.ecss 2010-12-28
11:14:21 UTC (rev 20825)
@@ -36,15 +36,20 @@
position: absolute;
top: 0px;
right: 0px;
- height: 200px;
- padding-top: 1px
+ height: 15px;
+ padding-top: 1px;
+ cursor: pointer;
}
+.rf-au-btn-dis{
+ background-color: '#{richSkin.headerBackgroundColor}';
+ cursor: default;
+}
+
.rf-au-btn-arrow{
background-position: center;
background-repeat: no-repeat;
background-image:
"url(#{resource['org.richfaces:combo_down_button.gif']})";
- cursor: pointer;
width: 15px;
height: 15px;
}
Modified: trunk/ui/input/ui/src/main/templates/autocomplete.template.xml
===================================================================
--- trunk/ui/input/ui/src/main/templates/autocomplete.template.xml 2010-12-28 09:23:56 UTC
(rev 20824)
+++ trunk/ui/input/ui/src/main/templates/autocomplete.template.xml 2010-12-28 11:14:21 UTC
(rev 20825)
@@ -16,7 +16,7 @@
<cc:implementation>
<cdk:object type="java.lang.Object" name="disabled"
value="#{component.attributes['disabled']}" />
<div id="#{clientId}" class="rf-au-fld">
- <input id="#{clientId}Value" name="#{clientId}Value"
type="hidden" class="rf-au-fnt rf-au-inp" />
+ <input id="#{clientId}Value" name="#{clientId}Value"
type="hidden" class="rf-au-fnt rf-au-inp" />
<div style="position : relative; overflow : hidden; text-align :
left; padding-right : 21px;">
<input onclick="#{component.attributes['onclick']}"
ondblclick="#{component.attributes['ondblclick']}"
@@ -30,7 +30,7 @@
onkeypress="#{component.attributes['onkeypress']}"
id="#{clientId}Input" value="#{component.attributes['value']}"
disabled="#{disabled}" name="#{clientId}" type="text"
class="rf-au-fnt rf-au-inp" autocomplete="off"/>
<c:if
test="#{component.attributes['showButton']}">
<c:if
test="#{component.attributes['disabled']}">
- <div id="#{clientId}Button" class="rf-au-btn">
+ <div id="#{clientId}Button" class="rf-au-btn
rf-au-btn-dis">
<div class="rf-au-btn-arrow"></div>
</div>
</c:if>
@@ -69,6 +69,7 @@
</div>
</div>
</div>
+ <c:if test="#{!component.attributes['disabled']}">
<script type="text/javascript">
<cdk:object name="mode" type="Object"
value="#{component.attributes['mode']}" />
<cdk:scriptObject name="options">
@@ -84,6 +85,7 @@
"#{clientId}Input", #{toScriptArgs(options)}
);
</script>
+ </c:if>
</div>
</cc:implementation>