Author: nbelaevski
Date: 2008-11-14 17:03:47 -0500 (Fri, 14 Nov 2008)
New Revision: 11180
Modified:
trunk/framework/impl/src/main/javascript/ajaxjsf/queue.js
Log:
Queue script fixes:
- transient queues throw "Queue already registered" exception instead of getting
already created queue
Modified: trunk/framework/impl/src/main/javascript/ajaxjsf/queue.js
===================================================================
--- trunk/framework/impl/src/main/javascript/ajaxjsf/queue.js 2008-11-14 18:52:57 UTC (rev
11179)
+++ trunk/framework/impl/src/main/javascript/ajaxjsf/queue.js 2008-11-14 22:03:47 UTC (rev
11180)
@@ -176,7 +176,6 @@
this.requestId = requestId;
this.startRequestDelay();
}
-
}
});
@@ -247,11 +246,14 @@
if (!queue) {
queue = A4J.AJAX._eventQueues[viewQueueName];
if (!queue && implicitQueueName) {
- LOG.debug("Creating new transient queue '" + implicitQueueName +
"' with default settings");
- queue = new A4J.AJAX.EventQueue(implicitQueueName);
- queue._transient = true;
-
- A4J.AJAX.EventQueue.addQueue(queue);
+ queue = A4J.AJAX._eventQueues[implicitQueueName];
+ if (!queue) {
+ LOG.debug("Creating new transient queue '" + implicitQueueName +
"' with default settings");
+ queue = new A4J.AJAX.EventQueue(implicitQueueName);
+ queue._transient = true;
+
+ A4J.AJAX.EventQueue.addQueue(queue);
+ }
}
}
Show replies by date