Author: konstantin.mishin
Date: 2008-08-06 06:15:54 -0400 (Wed, 06 Aug 2008)
New Revision: 9933
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
Log:
RF-4094
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
===================================================================
---
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2008-08-06
09:12:10 UTC (rev 9932)
+++
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2008-08-06
10:15:54 UTC (rev 9933)
@@ -42,6 +42,7 @@
import org.richfaces.component.Column;
import org.richfaces.component.Row;
import org.richfaces.component.UIDataTable;
+import org.richfaces.component.util.ViewUtil;
import org.richfaces.model.Ordering;
import org.richfaces.renderkit.html.iconimages.DataTableIconSortAsc;
import org.richfaces.renderkit.html.iconimages.DataTableIconSortDesc;
@@ -704,19 +705,19 @@
String imageUrl = null;
if (Ordering.ASCENDING.equals(col.getSortOrder())) {
if (null != col.getSortIconAscending()) {
- imageUrl = col.getSortIconAscending();
+ imageUrl = ViewUtil.getResourceURL(col.getSortIconAscending(), context);
} else {
imageUrl = getResource(DataTableIconSortAsc.class.getName()).getUri(context,
null);
}
} else if (Ordering.DESCENDING.equals(col.getSortOrder())) {
if (null != col.getSortIconDescending()) {
- imageUrl = col.getSortIconDescending();
+ imageUrl = ViewUtil.getResourceURL(col.getSortIconDescending(), context);
} else {
imageUrl = getResource(DataTableIconSortDesc.class.getName()).getUri(context,
null);
}
} else if (col.isSelfSorted()) {
if (null != col.getSortIcon()) {
- imageUrl = col.getSortIcon();
+ imageUrl = ViewUtil.getResourceURL(col.getSortIcon(), context);
} else {
imageUrl = getResource(DataTableIconSortNone.class.getName()).getUri(context,
null);
}
Show replies by date