On Thursday, Dec 5, 2002, at 03:21 US/Pacific, Daniel Fagerstrom wrote:
You might also find interesting Christopher's documentation on the continuations enabled Rhino:Christopher Oliver wrote:Ovidiu,Interesting!! Could you tell a litle bit more about how this construct works? What corresponds to the try block in ordinary exception > handling
I think the below would also work, without changing system.js or any Java code by using Rhino with continuations extended JavaScript syntax:
[code snippet removed]
ftp://ftp.primaryinterface.com/pub/rhino/README.TXT
Yes, I think this could work fine. I'll give it a shot, once I have a working Cocoon again.IMHO the above code is complicated to follow and requires good knowledge about how continuations work to be graspable. I prefer the construction Ovidius construction proposed as it abstracts away the use of continuations. Futhermore, in general one need different code for collecting request parameters for different form pages.[code snippet removed]
What about implementing Ovidius construction with the concepts you described? Maybe something like the following could work:
// Similar to sendPage() in system.js
function formSendPageAndWait(uri, bizData, collectRequestParametersFun, timeToLive)
{
catch (continue) {
collectRequestParametersFun();
}
return sendPageAndWait(uri, bizData, collectRequestParametersFun, timeToLive);
}
--
Ovidiu Predescu <[EMAIL PROTECTED]>
http://webweavertech.com/ovidiu/weblog/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]