On Sat, Jun 25, 2011 at 4:41 AM, Fritz Schenk <span dir="ltr">&lt;<a href="mailto:intrader.intrader@gmail.com">intrader.intrader@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">Julian Fitzell &lt;jfitzell &lt;at&gt; <a href="http://gmail.com" target="_blank">gmail.com</a>&gt; writes:<br>
<br>
&gt;<br>
&gt;<br>
&gt; Hi Fritz,For callback priority, just look at subclasses of WACallback<br>
(#priority<br>
method).I&#39;m not sure what you mean by priority of responses...Julian<br>
<br>
</div>Thanks Julian - I always enjoy your postings.<br></blockquote><div><br>Thanks. :)<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


I had looked at priority in the WACallback - I was looking fro some design or<br>
architectural  document. There was nothing to indicate that #cancelButton would<br>
set priority -5 (or what -5 means). And how does it affect AJAX which is also<br>
at -5. etc.<br></blockquote><div><br>You&#39;re right - it&#39;s not well documented. I see there aren&#39;t even any class comments in the Seaside-Core-Callbacks category...<br><br>The logic is in WACallback&gt;&gt;#&lt;=<br>

<br>Basically, callbacks with a lower priority are executed first. If two callbacks have the same priority, they will be evaluated by the order of their keys (in other words, in the order they were created).<br><br></div>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
As to #response, once you message #response, the rest of the processing is<br>
not done - callbacks,etc.<br></blockquote><div><br>A request runs only until it generates a response, so once you call #respond, that&#39;s definitely that. WAActionCallback and its subclasses all signal a WARenderNotification when they are done, which normally aborts the action phase and immediately begins rendering. So normally any callback with a later priority than a triggered action callback will not get executed (that&#39;s what prevents the WADefaultActionCallback from being executed unless there&#39;s no other action callback).<br>

<br>Hope that helps,<br><br>Julian<br></div></div>