You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2006/08/20 10:10:30 UTC
svn commit: r432953 - in /myfaces/tomahawk/trunk/sandbox/core/src/main:
java/org/apache/myfaces/custom/timednotifier/TimedNotifierRenderer.java
resources/org/apache/myfaces/custom/timednotifier/resource/timednotifier.js
Author: werpu
Date: Sun Aug 20 01:10:28 2006
New Revision: 432953
URL: http://svn.apache.org/viewvc?rev=432953&view=rev
Log:
timed notifier fixed and works again in dojo 0.3.1
Modified:
myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/timednotifier/TimedNotifierRenderer.java
myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/timednotifier/resource/timednotifier.js
Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/timednotifier/TimedNotifierRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/timednotifier/TimedNotifierRenderer.java?rev=432953&r1=432952&r2=432953&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/timednotifier/TimedNotifierRenderer.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/timednotifier/TimedNotifierRenderer.java Sun Aug 20 01:10:28 2006
@@ -108,7 +108,7 @@
sb.append( notifierVar + ".showDialog();\n");
sb.append("};\n");
- sb.append("setTimeout('"+replacedClientId+"()',"+timeShow.toString()+");");
+ sb.append("dojo.lang.setTimeout("+replacedClientId+","+timeShow.toString()+");");
ResponseWriter writer = facesContext.getResponseWriter();
writer.startElement(HTML.SCRIPT_ELEM, notifier);
Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/timednotifier/resource/timednotifier.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/timednotifier/resource/timednotifier.js?rev=432953&r1=432952&r2=432953&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/timednotifier/resource/timednotifier.js (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/timednotifier/resource/timednotifier.js Sun Aug 20 01:10:28 2006
@@ -23,7 +23,7 @@
* system within myfaces
======================================================*/
myfaces_TimedNotifier = function (dialogId, confirmButtonId, timeShow, timeHide) {
- dojo.widget.HtmlWidget.call(this);
+// dojo.widget.HtmlWidget.call(this);
this.dialogId = dialogId;
/*
* notification message timeouts
@@ -48,7 +48,7 @@
this.showDialog = function () {
this.dialog.show();
if (this.timeoutHide > 0) {
- dojo.lang.setTimeout(this, this.hideDialog, this.timeoutHide);
+ dojo.lang.setTimeout(dojo.lang.hitch(this, 'hideDialog'), this.timeoutHide);
}
};
/*