Author: vmolotkov
Date: 2008-04-24 07:49:59 -0400 (Thu, 24 Apr 2008)
New Revision: 8113
Modified:
trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
trunk/ui/pickList/src/main/resources/org/richfaces/renderkit/html/css/picklist.xcss
Log:
http://jira.jboss.com/jira/browse/RF-3223
Modified: trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
===================================================================
---
trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-04-24
11:13:30 UTC (rev 8112)
+++
trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2008-04-24
11:49:59 UTC (rev 8113)
@@ -427,7 +427,6 @@
writer.startElement(HTML.a_ELEMENT, component);
writer.writeAttribute(HTML.id_ATTRIBUTE, controlId + "link", null); //
FIXME:
- writer.writeAttribute(HTML.HREF_ATTR, "#", null);
writer.writeAttribute(HTML.onclick_ATTRIBUTE, "return false;", null);
if (!helper.enable) {
@@ -452,9 +451,7 @@
renderChild(context, facet);
} else {
writer.startElement(HTML.IMG_ELEMENT, component);
- writer.writeAttribute(HTML.width_ATTRIBUTE, "15", null);
- writer.writeAttribute(HTML.height_ATTRIBUTE, "15", null);
- writer.writeAttribute(HTML.border_ATTRIBUTE, "0", null);
+ writer.writeAttribute(HTML.class_ATTRIBUTE, "rich-picklist-control-img",
null);
writer.writeAttribute(HTML.alt_ATTRIBUTE, helper.getFacetName(), null);
writer.writeAttribute(HTML.src_ATTRIBUTE,
getResource(helper.getImageURI()).getUri(context, null), null);
writer.endElement(HTML.IMG_ELEMENT);
Modified:
trunk/ui/pickList/src/main/resources/org/richfaces/renderkit/html/css/picklist.xcss
===================================================================
---
trunk/ui/pickList/src/main/resources/org/richfaces/renderkit/html/css/picklist.xcss 2008-04-24
11:13:30 UTC (rev 8112)
+++
trunk/ui/pickList/src/main/resources/org/richfaces/renderkit/html/css/picklist.xcss 2008-04-24
11:49:59 UTC (rev 8113)
@@ -130,6 +130,13 @@
border-bottom: 1px dotted;
}
+.rich-picklist-control-img {
+ margin: 0px;
+ padding: 0px;
+ border:0px;
+ width: 15px;
+ height: 15px;
+}
]]>
</f:verbatim>