Author: dbiatenia
Date: 2007-07-18 11:28:21 -0400 (Wed, 18 Jul 2007)
New Revision: 1677
Modified:
branches/3.0.2/sandbox/tooltip/src/main/java/org/richfaces/renderkit/html/ToolTipRenderer.java
Log:
Modified:
branches/3.0.2/sandbox/tooltip/src/main/java/org/richfaces/renderkit/html/ToolTipRenderer.java
===================================================================
---
branches/3.0.2/sandbox/tooltip/src/main/java/org/richfaces/renderkit/html/ToolTipRenderer.java 2007-07-18
13:41:35 UTC (rev 1676)
+++
branches/3.0.2/sandbox/tooltip/src/main/java/org/richfaces/renderkit/html/ToolTipRenderer.java 2007-07-18
15:28:21 UTC (rev 1677)
@@ -13,6 +13,7 @@
import org.ajax4jsf.framework.skin.Skin;
import org.ajax4jsf.framework.util.javascript.JSFunction;
import org.ajax4jsf.framework.util.javascript.JSFunctionDefinition;
+import org.ajax4jsf.framework.util.javascript.JSReference;
import org.richfaces.component.UIToolTip;
public class ToolTipRenderer extends AjaxComponentRendererBase{
@@ -52,6 +53,9 @@
String refreshTooltipInDOM = ";" + getJsVarName(context, component) +
".toolTip = $('" + component.getClientId(context) + "');";
String showNewToolTip = ";" + getJsVarName(context, component) +
".displayDiv();";
+ //enable ajaxSingle mode, i.e. we do not need to submit all form controls to get
tooltip content
+ eventOptions.put("control", JSReference.THIS);
+
if(eventOptions.containsKey("oncomplete")){
JSFunctionDefinition onComplete =
(JSFunctionDefinition)eventOptions.get("oncomplete");
onComplete.addToBody(refreshTooltipInDOM + showNewToolTip);
Show replies by date