[richfaces-svn-commits] JBoss Rich Faces SVN: r11977 - trunk/ui/inplaceSelect/src/main/templates.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Mon Dec 22 13:48:42 EST 2008
Author: abelevich
Date: 2008-12-22 13:48:42 -0500 (Mon, 22 Dec 2008)
New Revision: 11977
Modified:
trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
Log:
https://jira.jboss.org/jira/browse/RF-5408
Modified: trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx
===================================================================
--- trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-12-22 15:59:20 UTC (rev 11976)
+++ trunk/ui/inplaceSelect/src/main/templates/inplaceselect.jspx 2008-12-22 18:48:42 UTC (rev 11977)
@@ -39,19 +39,23 @@
String fieldValue = null;
String fieldLabel = null;
+ String fieldInputLabel = null;
if (selectedItemLabel == null) {
fieldValue = null;
fieldLabel = createDefaultLabel(component);
+ fieldInputLabel="";
} else {
fieldValue = (String)value;
- fieldLabel = selectedItemLabel;
+ fieldLabel = selectedItemLabel;
+ fieldInputLabel = fieldLabel;
}
String encodedFieldValue = encodeValue(fieldValue);
variables.setVariable("fieldLabel", fieldLabel);
variables.setVariable("fieldValue", fieldValue);
+ variables.setVariable("fieldInputLabel", fieldInputLabel);
variables.setVariable("encodedFieldValue", encodedFieldValue);
String saveIcon = (String)component.getAttributes().get("saveControlIcon");
@@ -116,7 +120,7 @@
<input id="#{clientId}inplaceTmpValue"
type="text"
style='clip:rect(0px 0px 0px 0px)'
- value="#{fieldLabel}"
+ value="#{fieldInputLabel}"
autocomplete="off"
maxlength='#{component.attributes["inputMaxLength"]}'
readonly="readonly"
More information about the richfaces-svn-commits
mailing list