Author: abelevich
Date: 2008-03-14 10:46:51 -0400 (Fri, 14 Mar 2008)
New Revision: 6821
Modified:
trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx
Log:
http://jira.jboss.com/jira/browse/RF-2508
Modified: trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx
===================================================================
--- trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-03-14 14:33:04 UTC
(rev 6820)
+++ trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-03-14 14:46:51 UTC
(rev 6821)
@@ -28,13 +28,15 @@
Object value = component.getValue();
Object fieldValue = value;
value = getConvertedStringValue(context, component,value);
- if (value == null) {
+ if (value == null || value.equals("")) {
fieldValue = "";
- value = component.getAttributes().get("defaultLabel");
+ String defaultValue =
(String)component.getAttributes().get("defaultLabel");
+ if(defaultValue == null || defaultValue.equals("")) {
+ defaultValue = "\u00a0\u00a0\u00a0";
+ }
+ value = defaultValue;
}
- if (value.equals("")) {
- value = component.getAttributes().get("defaultLabel");
- }
+
variables.setVariable("value", value);
variables.setVariable("fieldValue", fieldValue);