Author: sergeyhalipov
Date: 2007-12-07 14:15:58 -0500 (Fri, 07 Dec 2007)
New Revision: 4610
Modified:
branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss
Log:
http://jira.jboss.com/jira/browse/RF-1185
Modified:
branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java
===================================================================
---
branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java 2007-12-07
19:14:42 UTC (rev 4609)
+++
branches/3.1.x/ui/orderingList/src/main/java/org/richfaces/renderkit/OrderingComponentRendererBase.java 2007-12-07
19:15:58 UTC (rev 4610)
@@ -319,6 +319,10 @@
writer.startElement(HTML.a_ELEMENT, orderingList);
writer.writeAttribute(HTML.class_ATTRIBUTE, baseStyle + "-selection",
null);
writer.writeAttribute(HTML.HREF_ATTR, "#", null);
+ if (!helper.enable) {
+ writer.writeAttribute(HTML.DISABLED_ATTR, "disabled", null);
+ writer.writeAttribute(HTML.style_ATTRIBUTE, "cursor: default;", null);
+ }
writer.startElement(HTML.DIV_ELEM, orderingList);
writer.writeAttribute(HTML.class_ATTRIBUTE, baseStyle + "-content", null);
Modified:
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss
===================================================================
---
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss 2007-12-07
19:14:42 UTC (rev 4609)
+++
branches/3.1.x/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/css/orderingList.xcss 2007-12-07
19:15:58 UTC (rev 4610)
@@ -160,6 +160,8 @@
.rich-ordering-list-cell-selected {
padding : 2px;
white-space: nowrap;
+ border-top: 1px solid;
+ border-bottom: 1px solid;
}
.rich-ordering-list-cell-active {
@@ -279,7 +281,7 @@
<u:style name="font-family" skin="generalFamilyFont" />
<u:style name="font-size" skin="generalSizeFont" />
</u:selector>
- <u:selector name=".rich-ordering-list-cell">
+ <u:selector name=".rich-ordering-list-cell-selected">
<u:style name="border-bottom-color" skin="tableBorderColor"
/>
<u:style name="border-top-color" skin="tableBackgroundColor"
/>
</u:selector>