You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by gm...@apache.org on 2007/02/12 01:21:55 UTC
svn commit: r506188 -
/myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js
Author: gmuellan
Date: Sun Feb 11 16:21:54 2007
New Revision: 506188
URL: http://svn.apache.org/viewvc?view=rev&rev=506188
Log:
Change to local reference; Former way caused side effects when using manual-ppr and automatically-ppr together.
Modified:
myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js
Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js?view=diff&rev=506188&r1=506187&r2=506188
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js Sun Feb 11 16:21:54 2007
@@ -27,9 +27,9 @@
org.apache.myfaces.PPRCtrl = function(formId, showDebugMessages, stateUpdate)
{
- org.apache.myfaces.PPRCtrl.blockPeriodicalUpdateDuringPost = false;
- org.apache.myfaces.PPRCtrl.showDebugMessages = showDebugMessages;
- org.apache.myfaces.PPRCtrl.stateUpdate = stateUpdate;
+ this.blockPeriodicalUpdateDuringPost = false;
+ this.showDebugMessages = showDebugMessages;
+ this.stateUpdate = stateUpdate;
if(typeof window.myFacesPartialTriggers == "undefined")
{
@@ -107,7 +107,7 @@
org.apache.myfaces.PPRCtrl.prototype.doBlockPeriodicalUpdateDuringPost = function()
{
- org.apache.myfaces.PPRCtrl.blockPeriodicalUpdateDuringPost = true;
+ this.blockPeriodicalUpdateDuringPost = true;
};
@@ -115,7 +115,7 @@
org.apache.myfaces.PPRCtrl.prototype.handleCallback = function(type, data, evt)
{
- if(type == "load" && !org.apache.myfaces.PPRCtrl.blockPeriodicalUpdateDuringPost)
+ if(type == "load" && !this.blockPeriodicalUpdateDuringPost)
{
var componentUpdates = data.getElementsByTagName("component");
var componentUpdate = null;
@@ -130,7 +130,7 @@
//ensure that new buttons in the ParitalUpdate also have onclick-handlers
this.formNode.myFacesPPRCtrl.addButtonOnClickHandlers();
- if (org.apache.myfaces.PPRCtrl.stateUpdate)
+ if (this.stateUpdate)
{
var stateElem = data.getElementsByTagName("state")[0];
var stateUpdate = dojo.dom.firstElement(stateElem, 'INPUT');
@@ -151,13 +151,13 @@
domElement.value = stateUpdate.getAttribute('value');
}
}
- else if (stateUpdateId != 'jsf_tree' && org.apache.myfaces.PPRCtrl.showDebugMessages)
+ else if (stateUpdateId != 'jsf_tree' && this.showDebugMessages)
alert("server didn't return appropriate element for state-update. returned element-id: " +
stateUpdate.getAttribute('id') + ", value : " + stateUpdate.getAttribute('value'));
}
}
}
- else if(org.apache.myfaces.PPRCtrl.showDebugMessages)
+ else if(this.showDebugMessages)
{
alert("an Error occured during the ajax-request " + data.message);
}
@@ -246,7 +246,7 @@
formNode: this.form
});
- if(refreshTimeout && !org.apache.myfaces.PPRCtrl.blockPeriodicalUpdateDuringPost)
+ if(refreshTimeout && !this.blockPeriodicalUpdateDuringPost)
{
window.setTimeout(function() {
ppr.startPeriodicalUpdate(refreshTimeout, refreshZoneId);
@@ -294,7 +294,7 @@
{
this.form = dojo.byId(formId);
if( (typeof this.form == "undefined" || this.form.tagName.toLowerCase() != "form")
- && org.apache.myfaces.PPRCtrl.showDebugMessages)
+ && this.showDebugMessages)
{
alert("MyFaces PPR Engine: Form with id:" + formId + " not found!");
return;