Author: abelevich
Date: 2008-03-17 11:49:03 -0400 (Mon, 17 Mar 2008)
New Revision: 6866
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/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
Log:
http://jira.jboss.com/jira/browse/RF-2510
Modified: trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml
===================================================================
--- trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-03-17 15:45:18
UTC (rev 6865)
+++ trunk/ui/inplaceInput/src/main/config/component/inplaceinput.xml 2008-03-17 15:49:03
UTC (rev 6866)
@@ -74,7 +74,7 @@
<name>editEvent</name>
<classname>java.lang.String</classname>
<description></description>
- <defaultvalue><![CDATA["click"]]></defaultvalue>
+ <defaultvalue><![CDATA["onclick"]]></defaultvalue>
</property>
<property>
<name>controlsVerticalPosition</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-17
15:45:18 UTC (rev 6865)
+++
trunk/ui/inplaceInput/src/main/java/org/richfaces/renderkit/InplaceInputBaseRenderer.java 2008-03-17
15:49:03 UTC (rev 6866)
@@ -5,11 +5,9 @@
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
-import javax.faces.context.ResponseWriter;
import javax.faces.convert.Converter;
import org.ajax4jsf.javascript.JSFunctionDefinition;
-import org.ajax4jsf.renderkit.ComponentVariables;
import org.ajax4jsf.renderkit.HeaderResourcesRendererBase;
import org.ajax4jsf.util.InputUtils;
import org.apache.commons.logging.Log;
Modified:
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js
===================================================================
---
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-03-17
15:45:18 UTC (rev 6865)
+++
trunk/ui/inplaceInput/src/main/resources/org/richfaces/renderkit/html/scripts/inplaceinput.js 2008-03-17
15:49:03 UTC (rev 6866)
@@ -26,12 +26,15 @@
this.bar = new Richfaces.InplaceInputBar(barParams[0], barParams[1], barParams[2],
barParams[3], barParams[4],
this.attributes.verticalPosition, this.attributes.horizontalPosition);
}
+
+ this.editEvent =
this.attributes.editEvent.substring(2,this.attributes.editEvent.length);
+
this.initHandlers();
this.initEvents();
},
initHandlers : function() {
- this.inplaceInput.observe(this.attributes.editEvent,
function(e){this.switchingStatesHandler(e);}.bindAsEventListener(this));
+ this.inplaceInput.observe(this.editEvent,
function(e){this.switchingStatesHandler(e);}.bindAsEventListener(this));
this.inplaceInput.observe("mouseout",
function(e){this.inplaceMouseOutHandler(e);}.bindAsEventListener(this));
this.inplaceInput.observe("mouseover",
function(e){this.inplaceMouseOverHandler(e);}.bindAsEventListener(this));