Author: nbelaevski
Date: 2009-04-13 12:31:54 -0400 (Mon, 13 Apr 2009)
New Revision: 13537
Modified:
trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
Log:
https://jira.jboss.org/jira/browse/RF-6766
Modified: trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java
===================================================================
---
trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2009-04-13
16:12:48 UTC (rev 13536)
+++
trunk/ui/pickList/src/main/java/org/richfaces/renderkit/PickListRenderer.java 2009-04-13
16:31:54 UTC (rev 13537)
@@ -338,7 +338,13 @@
writer.write(selectItem.getLabel());
}
- String itemValue = converter != null ? converter.getAsString(context, component,
selectItem.getValue()) : "";
+ String itemValue;
+ if (converter != null) {
+ itemValue = converter.getAsString(context, component, selectItem.getValue());
+ } else {
+ Object valueObject = selectItem.getValue();
+ itemValue = (valueObject != null ? valueObject.toString() : "");
+ }
encodeItemValue(context, component, writer, id, itemValue);