Author: abelevich
Date: 2008-03-14 11:40:15 -0400 (Fri, 14 Mar 2008)
New Revision: 6823
Modified:
trunk/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java
Log:
http://jira.jboss.com/jira/browse/RF-2508
Modified:
trunk/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java
===================================================================
---
trunk/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java 2008-03-14
14:47:49 UTC (rev 6822)
+++
trunk/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java 2008-03-14
15:40:15 UTC (rev 6823)
@@ -117,7 +117,13 @@
attributes.append("var attributes = ");
ScriptOptions options = new ScriptOptions(component);
- options.addOption("defaultLabel");
+
+ String defaultLabel =
(String)component.getAttributes().get("defaultLabel");
+ if (defaultLabel == null || defaultLabel.equals("")) {
+ defaultLabel = "\u00a0\u00a0\u00a0";
+ }
+
+ options.addOption("defaultLabel", defaultLabel);
options.addOption("showControls");
options.addOption("editEvent");
options.addOption("selectOnEdit");