You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Jeremy <jk...@jkassis.com> on 2006/03/05 05:08:30 UTC

Call updateObject.responseComplete after processing scripts for the node

Hi. Seems like the tacos framework should call updateObject.responseComplete
after processing the scripts embedded in the incoming <ajax-response>
element. That way, the incoming fragment can actually redefine the
responseComplete method of the update object. Any reason not to change this?


 

FYI. Here's some pseudocode for what's happening during a defaultLinkAction
call: 

defaultLinkAction(){ 
   loadDojoResponse() { 
      processScripts("preprocess" and "jsincludes" element nodes); 
      processAjaxResponse() { 
         for each response node { 
            updateObject.beforeAjaxUpdate(); 
            loadElement() { 
               weave the new nodes into the DOM 
               updateObject.ajaxUpdate(); 
            } 
         } 
         processScripts("postprocess" element nodes); 
         updateObject.responseComplete(); 
      } 
   }
   processScripts("ajax-response" element nodes); 
}


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.1.2/274 - Release Date: 3/3/2006
 

Re: Call updateObject.responseComplete after processing scripts for the node

Posted by Jesse Kuhnert <jk...@gmail.com>.
This is probably more appropriate for the tacos list (unless it got
buried?), but I don't see any reason why it couldn't be pushed until after
the scripts are processed, since that's technically the "end" of the client
request cycle.

A bug report will ensure it gets done.

On 3/4/06, Jeremy <jk...@jkassis.com> wrote:
>
> Hi. Seems like the tacos framework should call
> updateObject.responseComplete
> after processing the scripts embedded in the incoming <ajax-response>
> element. That way, the incoming fragment can actually redefine the
> responseComplete method of the update object. Any reason not to change
> this?
>
>
>
>
> FYI. Here's some pseudocode for what's happening during a
> defaultLinkAction
> call:
>
> defaultLinkAction(){
>    loadDojoResponse() {
>       processScripts("preprocess" and "jsincludes" element nodes);
>       processAjaxResponse() {
>          for each response node {
>             updateObject.beforeAjaxUpdate();
>             loadElement() {
>                weave the new nodes into the DOM
>                updateObject.ajaxUpdate();
>             }
>          }
>          processScripts("postprocess" element nodes);
>          updateObject.responseComplete();
>       }
>    }
>    processScripts("ajax-response" element nodes);
> }
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.375 / Virus Database: 268.1.2/274 - Release Date: 3/3/2006
>
>
>