cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <>
Subject Re: RT: map:call as generic non-redirecting controller code
Date Sun, 15 Jul 2007 03:50:46 GMT
Daniel Fagerstrom wrote:
> Vadim Gritsenko skrev:


>>   function baz() {
>>     // This will work:
>>     cocoon.result = { one: "one.xml", two: "two.xslt" };
>>     FOM_Cocoon.suicide();
>>     // This does not, without refactoring all of the methods above :)
>>     return { one: "one.xml", two: "two.xslt" };
>>   }
> I think I understand. I haven't used flowscripts in such a low level 
> way. Where is the cocoon.result mechanism implemented?

It's not -- it was one of suggested ways to return result back to sitemap :)

>> If you have non trivial amount of javascript already written, it won't 
>> be possible to use new flowscript actions stuff if they do not work 
>> with suicide() method.
> I guess that the flow action could look for the cocoon.result value in 
> cases where there is no return value from the function. Don't know how 
> to deal with the, FOM_Cocoon.suicide(). Does it have to be dealt with? 


> Doesn't it just work as a break command?

Yes, exactly. Sorta like "jump out of flowscript", but you don't get a return 
result with it.


View raw message