Author: abelevich
Date: 2008-05-08 12:53:27 -0400 (Thu, 08 May 2008)
New Revision: 8508
Modified:
trunk/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
Log:
http://jira.jboss.com/jira/browse/RF-3311
Modified:
trunk/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java
===================================================================
---
trunk/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2008-05-08
16:49:36 UTC (rev 8507)
+++
trunk/ui/inplaceSelect/src/main/java/org/richfaces/renderkit/InplaceSelectBaseRenderer.java 2008-05-08
16:53:27 UTC (rev 8508)
@@ -60,8 +60,10 @@
Map <String,String> request =
context.getExternalContext().getRequestParameterMap();
String newValue = (String) request.get(clientId);
- if (newValue != null) {
+ if (newValue != null && newValue.length()!= 0) {
inplaceSelect.setSubmittedValue(newValue);
+ } else {
+ inplaceSelect.setSubmittedValue(null);
}
}
Modified: trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
===================================================================
--- trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-05-08 16:49:36 UTC
(rev 8507)
+++ trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-05-08 16:53:27 UTC
(rev 8508)
@@ -33,9 +33,9 @@
Object value = component.getSubmittedValue();
if(value == null) {
value = component.getAttributes().get("value");
+ value = getConvertedStringValue(context, component,value);
}
String fieldLabel = getSelectedItemLabel(context, component);
- value = getConvertedStringValue(context, component,value);
String fieldValue = (String)value;
if (value == null || value.equals("")) {