Author: abelevich
Date: 2008-03-31 12:40:37 -0400 (Mon, 31 Mar 2008)
New Revision: 7488
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:
fix for ajax reRender
Modified: trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml
===================================================================
--- trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-03-31 16:22:48
UTC (rev 7487)
+++ trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-03-31 16:40:37
UTC (rev 7488)
@@ -64,7 +64,7 @@
<name>defaultLabel</name>
<classname>java.lang.String</classname>
<description>The attribute is used to display text while value is
undefined</description>
-
<defaultvalue><![CDATA["\u00a0\u00a0\u00a0"]]></defaultvalue>
+
<defaultvalue>"   "</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-03-31
16:22:48 UTC (rev 7487)
+++
trunk/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java 2008-03-31
16:40:37 UTC (rev 7488)
@@ -120,7 +120,7 @@
String defaultLabel =
(String)component.getAttributes().get("defaultLabel");
if (defaultLabel == null || defaultLabel.equals("")) {
- defaultLabel = "\u00a0\u00a0\u00a0";
+ defaultLabel = "   ";
}
options.addOption("defaultLabel", defaultLabel);
Modified: trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx
===================================================================
--- trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-03-31 16:22:48 UTC
(rev 7487)
+++ trunk/ui/inplaceInput/src/main/templates/inplaceinput.jspx 2008-03-31 16:40:37 UTC
(rev 7488)
@@ -36,7 +36,7 @@
fieldValue = "";
String defaultValue =
(String)component.getAttributes().get("defaultLabel");
if(defaultValue == null || defaultValue.equals("")) {
- defaultValue = "\u00a0\u00a0\u00a0";
+ defaultValue = "   ";
}
value = defaultValue;
}
@@ -172,11 +172,9 @@
'#{clientId}ok', '#{clientId}cancel',
'#{clientId}buttons','#{clientId}btns_shadow']);
</script>
</div>
- #{value}
-
+
<jsp:scriptlet>
-
-
+ writer.write(convertToString(variables.getVariable("value")));
if (!layout.equals("inline")) {
</jsp:scriptlet>
</div>
Show replies by date