Author: abelevich
Date: 2008-08-26 11:43:11 -0400 (Tue, 26 Aug 2008)
New Revision: 10196
Modified:
trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml
trunk/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java
trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx
Log:
https://jira.jboss.org/jira/browse/RF-3895
Modified: trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml
===================================================================
--- trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-08-26 15:42:18
UTC (rev 10195)
+++ trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-08-26 15:43:11
UTC (rev 10196)
@@ -60,7 +60,7 @@
<name>defaultLabel</name>
<classname>java.lang.String</classname>
<description>The attribute is used to display text while value is
undefined</description>
-
<defaultvalue>"   "</defaultvalue>
+ <defaultvalue>"\u00a0\u00a0\u00a0"</defaultvalue>
</property>
<property>
<name>showControls</name>
Modified:
trunk/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java
===================================================================
---
trunk/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java 2008-08-26
15:42:18 UTC (rev 10195)
+++
trunk/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java 2008-08-26
15:43:11 UTC (rev 10196)
@@ -50,7 +50,7 @@
private static final String INPLACE_CSS_HOVER = "hover";
- private static final String EMPTY_DEFAULT_LABEL =
"   ";
+ private static final String EMPTY_DEFAULT_LABEL = "\u00a0\u00a0\u00a0";
private static enum States {
NORMAL {String createCss(UIComponent component, String suffix){
Modified: trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx
===================================================================
--- trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-08-26 15:42:18 UTC
(rev 10195)
+++ trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-08-26 15:43:11 UTC
(rev 10196)
@@ -37,7 +37,7 @@
fieldValue = "";
String defaultValue =
(String)component.getAttributes().get("defaultLabel");
if(defaultValue == null || defaultValue.equals("")) {
- defaultValue = "   ";
+ defaultValue = "\u00a0\u00a0\u00a0";
}
value = defaultValue;
}